Can I name a view / action "View" in ASP.NET MVC without creating an additional set of route definitions? I was thinking about attributes, but could not find the right one. "View" as a function name is not possible because it hides the method of the deriven class Controller.
An example of what I mean with the view:
public ActionResult HereShouldBeViewInsteadOfThisText()
{
return View();
}
Therefore, I can use url /home/view/id.
source
share