LEFT | RIGHT |
(Both sides are equal) |
1 // This file is added automatically by the MVC 5 application template. | 1 // This file is added automatically by the MVC 5 application template. |
2 | 2 |
3 using System; | 3 using System; |
4 using System.Collections.Generic; | 4 using System.Collections.Generic; |
5 using System.Linq; | 5 using System.Linq; |
6 using System.Web; | 6 using System.Web; |
7 using System.Web.Mvc; | 7 using System.Web.Mvc; |
8 using System.Web.Routing; | 8 using System.Web.Routing; |
9 | 9 |
10 namespace Calendar.ASP.NET.MVC5 | 10 namespace Calendar.ASP.NET.MVC5 |
11 { | 11 { |
12 public class RouteConfig | 12 public class RouteConfig |
13 { | 13 { |
14 public static void RegisterRoutes(RouteCollection routes) | 14 public static void RegisterRoutes(RouteCollection routes) |
15 { | 15 { |
16 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | 16 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |
17 | 17 |
18 routes.MapRoute( | 18 routes.MapRoute( |
19 name: "Default", | 19 name: "Default", |
20 url: "{controller}/{action}/{id}", | 20 url: "{controller}/{action}/{id}", |
21 defaults: new { controller = "Home", action = "Index", id = UrlP
arameter.Optional } | 21 defaults: new { controller = "Home", action = "Index", id = UrlP
arameter.Optional } |
22 ); | 22 ); |
23 } | 23 } |
24 } | 24 } |
25 } | 25 } |
LEFT | RIGHT |