This is just a quick aide-mémoire for me as I pick up some MVC code again. At the time of writing MVC is in version 5.
OK, action methods can return the following ActionResult types:
Action Result | Helper Method | Description |
Renders a view as a Web page. | ||
Renders a partial view, which defines a section of a view that can be rendered inside another view. | ||
Redirects to another action method by using its URL. | ||
Redirects to another action method. | ||
Returns a user-defined content type. | ||
Returns a serialized JSON object. | ||
Returns a script that can be executed on the client. | ||
Returns binary output to write to the response. | ||
(None) | Represents a return value that is used if the action method must return a null result (void). |
See Controllers and Action Methods in ASP.NET MVC Applications for the origin of this table.