ASPMvcFirstApplication.RouteConfig.RegisterRoutes C# (CSharp) Method

RegisterRoutes() public static method

public static RegisterRoutes ( RouteCollection routes ) : void
routes RouteCollection
return void
        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 }
            );
        }
RouteConfig