diff options
Diffstat (limited to 'Project-Unite/App_Start/RouteConfig.cs')
| -rw-r--r-- | Project-Unite/App_Start/RouteConfig.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Project-Unite/App_Start/RouteConfig.cs b/Project-Unite/App_Start/RouteConfig.cs new file mode 100644 index 0000000..2fc4239 --- /dev/null +++ b/Project-Unite/App_Start/RouteConfig.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace Project_Unite +{ + public class RouteConfig + { + public static void RegisterRoutes(RouteCollection routes) + { + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + } + } +} |
