Created
November 17, 2012 09:33
-
-
Save rrreese/4094495 to your computer and use it in GitHub Desktop.
Registering Routes in ASp.NET MVC
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
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.MapRoute | |
( | |
"Default", // Route name | |
"{controller}/{action}/{id}", // URL with parameters | |
new { controller = "Home", action = "Index", id = "" } // Parameter defaults | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment