我创建了一个控制器中的两个视图。问题是,我希望在完成httppost后加载第二个视图。
索引视图
public ActionResult Index()
{
return View();
}
HttpPost
[HttpPost]
public ActionResult Index(AccountModel model)
{
return View("NEXTVIEW");
}
下一个视图
public ActionResult NEXTVIEW(EpmloyeeModal model)
{
return View();
}
在HttpPost之后,我已经添加了返回到下一个视图的代码。然而它总是返回到Index视图。我尝试在不同的网站上寻找这样的场景,但是无处可找。
谢谢。