What is ActionResult ?
ActionResult is the abstract class which is used to show the output to the client in different format as per result view returned by the controller.
The ActionResult are defined into the controller and controller returns to the client (Browser).
The following are the sub type or types of Action Results which are present in MVC which are used as per output requirement of client.
- RedirectResult -It redirects to the specified url same as Response.Redirect in Asp.net.
- RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data.
This article is only briefs about the Action Results so beginners can understand,for more details please read my future article.