| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Linq; |
| 4 | using System.Web; |
| 5 | using System.Web.Mvc; |
| 6 | using System.Web.Routing; |
| 7 | |
| 8 | namespace CsprojWebApplicationNetFx |
| 9 | { |
| 10 | public class RouteConfig |
| 11 | { |
| 12 | public static void RegisterRoutes(RouteCollection routes) |
| 13 | { |
| 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |
| 15 | |
| 16 | routes.MapRoute( |
| 17 | name: "Default", |
| 18 | url: "{controller}/{action}/{id}", |
| 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } |
| 20 | ); |
| 21 | } |
| 22 | } |
| 23 | } |