Created
May 7, 2013 23:39
-
-
Save smockle/5537075 to your computer and use it in GitHub Desktop.
Routing creates URLs without displaying a controller name. For ASP.NET MVC4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RouteTable.Routes.MapRoute("SpecificRoute", "{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment