标签: asp.net-mvc-4
在我的ASP.Net MVC 4应用程序中,我想将模型发送到特定视图。这是伪代码 -
public ActionResult Index() { A_Model model=new A_Model(); return View(model, "ViewName"); }
有什么办法吗?
谢谢。
答案 0 :(得分:4)
使用
return View("ViewName", model);