Is there any way to force a Route to be executed, only if all tokens are present in the URL string?
Consider this Route:
RouteTable.Routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new
{
controller = "Test",
action = "Index",
id = 0
}
);
This Route execute on /Home/Index/1
and /Home/Index
. But I only want it to get executed if all tokens are present in the URL string: controller, action and id.