問題:
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()