Action Result Return Type

Monday, 3 February 2014

ActionResultHelper MethodDescription
ViewResultViewRenders a view as a web page
PartialViewResultPartialViewSection of a view,that can be rendered inside another view
RedirectResultRedirectRedirect to another action method
RedirectToRouteResultRedirectToRouteRedirect to another action method
ContentResultContentReturns a user-defined content type
JsonResultJsonRetuns a serialized JSON object
JavaScriptResultJavaScriptReturns a script that can be executed on the client
FileResultFileReturns a binary output to write to the response
EmptyResult(None)returns a null result