1 Answer

0 votes
by
In MVC there are 12 results. Among them ActionResult class is a base class for all action results. The 11 sub classes are given bellow:

ViewResult– renders a view as a web page to the response stream

PartialViewResult– renders a view inside another view

EmptyResult– returns a empty or null result

RedirectResult– redirect to another action method (HTTP redirection)

RedirectToRouteResult– redirect to another action method (HTTP redirection) that is determined by the routing engine, based on a given route

JsonResult– returns a JSON object form a ViewData

JavaScriptResult– returns a script code that can be executed on the client

ContentResult– returns a user-defined content type

FileContentResult– returns a file to the client

FileStreamResult– returns a file to the client, which is supplied by a Stream

FilePathResult– returns a file to the client

Related questions

0 votes
asked Aug 18, 2019 in MVC Language by rahulsharma
0 votes
asked Aug 18, 2019 in MVC Language by rahulsharma
...