InterviewSolution
Saved Bookmarks
| 1. |
Different return types of a controller action method |
|
Answer» DIFFERENT return types of a controller action method ACTIONRESULT is a return type of controller method in asp.net mvc. There are many derived ActionResult types in MVC that we USE to return the result of a controller method to the VIEW. ActionResult is a return type of controller method in MVC. ActionResult is abstract class that has many subtypes. Below are the different return types of a controller action method:- (1)ViewResult (2)PartialViewResult (3)ContentResult (4)RedirectResult (5)RedirectToRouteResult (6)JsonResult (7)EmptyResult (8)FileResult (9)JavaScriptResult |
|