I have one controller HomeController.cs
.
In this controller I have some actions like about,contact etc.
If I want that will work I have to defined function to each view:
public ActionResult Index()
{
return View();
}
public ActionResult About()
{
return View();
}
I want that for all the requests to the controller it will be return the View()
, so I will not have to defined a function to each view.
*Update I want to know if there is some handler that will work something like this:
protected override void OnActionCall()
{
return View();
}