Must ASP.NET MVC Controller Methods Return ActionResult?

前端 未结 6 732
情书的邮戳
情书的邮戳 2020-12-02 14:24

Being new to ASP.NET MVC, I\'ve been wondering about the signature of Controller methods. In all the examples I\'ve seen, they always seem to return ActionResult, even if th

6条回答
  •  北海茫月
    2020-12-02 14:43

    [Partial answer]: You don't always return ActionResult, no. Here's a quick view of some other results you can return: http://msdn.microsoft.com/en-us/library/dd410269%28v=vs.98%29.aspx

    Maybe that'll help a little. Good luck!

提交回复
热议问题