Amss.Boilerplate.Web.Areas.Main.MainAreaRegistration.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(RouteHelper.Root, string.Empty, new { area = "Main", controller = "Home", action = "Index" });
            context.MapRoute(RouteHelper.Logon, "Login", new { area = "Main", controller = "Home", action = "Login" });
            context.MapRoute(RouteHelper.About, "About", new { area = "Main", controller = "Home", action = "About" });
            context.MapRoute(RouteHelper.Contact, "Contact", new { area = "Main", controller = "Home", action = "Contact" });

            context.MapRoute(
                "Main_default",
                "Main/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional });
        }
MainAreaRegistration