Learn different types of Action Results in MVC?
Kml Surani
There are many as per the response is required. ------------------------------------------------------------------------------------------------------------------- ViewResult - Renders a view as a Web page. PartialViewResult - Renders a partial view, which defines a section of a view that can be rendered inside another view. RedirectResult - Redirects to another action method by using its URL. RedirectToRouteResult - Redirects to another action method. ContentResult - Returns a user-defined content type. JsonResult - Returns a serialized JSON object. JavaScriptResult - Returns a script that can be executed on the client. FileResult - Returns binary output to write to the response. EmptyResult - Represents a return value that is used if the action method must return a null result (void).