У меня есть контроллер, определенный как
[Route(somecontroller1/someaction1{someid}]
И когда я пытаюсь Redirect
перевести его в другое представление
Redirect("somecontroller2/someaction2{someid}")
мой URL-адрес
somecontroller1/someaction1{someid}/somecontroller2/someaction2{someid}
, поэтому мой вопрос: как я могу перенаправить только на somecontroller2/someaction2{someid}
, вы можете увидеть код ниже;
[HttpPost]
[Route("someController1/someaction1/{someid}")]
public ActionResult CreateComment(Comment comment, int someid)
{
*//do something*
return Redirect("someController2/someAction2/" + someid);
}