Why map special routes first before common routes in asp.net mvc?
The routing engine will take the first route that matches the supplied URL and attempt to use the route values in that route. The reason why this happens is because the RouteTable is used like a switch-case statement. Picture the following: int caseSwitch = 1; switch (caseSwitch) { case 1: Console.WriteLine(“Case 1”); break; case 1: … Read more