Пример #1
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapT4Route("AdminDashboard", "admin/dashboard", T4Routes.Admin.Dashboard.Index());

            context.MapT4Route("AdminConfigurationEnsureDefaultUser", "admin/configuration/ensure-default-user", T4Routes.Admin.Configuration.EnsureDefaultUser());

            context.MapT4Route("AdminConfigurationEnsureDefaultSettings", "admin/configuration/ensure-default-settings", T4Routes.Admin.Configuration.EnsureDefaultSettings());
        }
 public static Route MapT4Route(this AreaRegistrationContext context, string name, string url, ActionResult result)
 {
     return(context.MapT4Route(name, url, result.GetRouteValueDictionary(), null, null));
 }
 public static Route MapT4Route(this AreaRegistrationContext context, string name, string url, ActionResult result, object constraints, string[] namespaces)
 {
     return(context.MapT4Route(name, url, result.GetRouteValueDictionary(), constraints, namespaces));
 }