I have opened a sample ASP.NET MVC project.
In HomeController
I have created a method (action) named MethodA
public ActionResult MethodA()
{
return View();
}
I have right clicked on MethodA
and created a new view called MethodA1
Re-did it and created a new view called MethodA2
.
How is this magical relationship done? I looked for the config to tell the compiler that views
MethodAX
are related to actionMethodA
, but found none.What view will the controller return when
MethodA
is called?