Skip to content

Instantly share code, notes, and snippets.

@smockle
Created May 7, 2013 23:39
Show Gist options
  • Save smockle/5537075 to your computer and use it in GitHub Desktop.
Save smockle/5537075 to your computer and use it in GitHub Desktop.
Routing creates URLs without displaying a controller name. For ASP.NET MVC4.
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