ASP.NET MVC - MapRoute versus routes.Add (and 404s)
问题 I'm just getting started with ASP.NET MVC. What is the difference between MapRoute and routes.Add ? Should I just be using MapRoute? Can I map multiple routes? Which "maps" take precedence... those you called first or last? I'd like to be able to do something similiar to the StackOverflow does for users. But I would like the URL to fit this pattern: "User/{domain}/{username}" to be routed to a UserController and for all other requests to do the typical ASP.NET MVC routing. ex: routes.MapRoute