AreasExample.Areas.Catalog.CatalogAreaRegistration.RegisterArea C# (CSharp) Method

RegisterArea() public method

public RegisterArea ( System.Web.Mvc.AreaRegistrationContext context ) : void
context System.Web.Mvc.AreaRegistrationContext
return void
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Catalog_default",
                "Catalog/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
CatalogAreaRegistration