ActionResult Return Type in MVC
ActionResult Return Type When we create an Action method in the controller so ActionResult is the return type of method public class LearnController: Controller { // GET: Learn public ActionResult Index() { ViewBag.Title = "Learn Controller"; return View(); } } above we can see the index method in which return type is ActionResult. that means all action methods are derived from ActionResult class. so ActionResult is base class for all action method Types of Action Result 1) ViewResult:- When we use ViewResult in the method then method responsibility is to render