What Controller/Action will this go to?
- by rkrauter
Assume this is the first route entry:
routes.MapRoute(
"myRoute",
"employees/{city}/{pageNumber}",
new { controller="Employees", action = "List", pageNumber = 1 }
);
If I make the following request
employees/london/2
it gets matched to the following action method:
public ActionResult List(string city) {}
How did that happen? I did not specify "city" in my object defaults:
new { controller="Employees", action = "List", pageNumber = 1 }
Please explain. Thanks!