问题:
What is the difference between ViewResult()
and ActionResult()
in ASP.NET MVC? ASP.NET MVC 中的ViewResult()
和ActionResult()
什么区别?
public ViewResult Index()
{
return View();
}
public ActionResult Index()
{
return View();
}
解决方案:
参考一: https://stackoom.com/question/Ju3x参考二: Difference Between ViewResult() and ActionResult()