public override void RegisterArea(AreaRegistrationContext context) { var culture = StrixPlatform.DefaultCultureCode.ToLower(); context.Routes.MapRoute( "SecureFiles", "Content/Uploads/Secure/{*url}", new { controller = "File", action = "GetFile", type = "Uploads", url = UrlParameter.Optional }); context.Routes.MapRoute( "SecureThumbs", "Content/Thumbs/Secure/{*url}", new { controller = "File", action = "GetFile", type = "Thumbs", url = UrlParameter.Optional }); context.Routes.MapLocalizedRoute( "CheckName", "{language}/{controller}/CheckName/{name}/{entityId}", new { language = culture, controller = "Home", action = "CheckName", name = UrlParameter.Optional, entityId = UrlParameter.Optional }); context.Routes.MapRoute( "Images", "Image/{width}/{height}/{*url}", new { controller = "File", action = "GetImage", type = "Thumbs", width = UrlParameter.Optional, height = UrlParameter.Optional, url = UrlParameter.Optional }); context.MapLocalizedRoute( "EntityAction", "{language}/Admin/Cms/EntityAction/{action}/{id}", new { language = culture, controller = "EntityAction", action = MvcConstants.INDEX, id = UrlParameter.Optional }); context.MapLocalizedRoute( "Versioning", "{language}/Admin/Version/{action}/{id}", new { language = culture, controller = "Version", action = MvcConstants.INDEX, id = UrlParameter.Optional }); context.MapLocalizedRoute( name: "Cms_Default", url: "{language}/Admin/Cms/{controller}/{action}/{id}", defaults: new { language = culture, controller = "Home", action = "Index", id = UrlParameter.Optional }); }
public override void RegisterArea(AreaRegistrationContext context) { if (context == null) { throw new ArgumentNullException("context"); } var culture = StrixPlatform.DefaultCultureCode.ToLower(); context.MapLocalizedRoute( LoggingConstants.LOGGING, "{language}/Admin/Logging/{controller}/{action}/{id}", new { language = culture, controller = LoggingConstants.LOGGING, action = MvcConstants.INDEX, id = UrlParameter.Optional }); }
public override void RegisterArea(AreaRegistrationContext context) { if (context == null) { throw new ArgumentNullException("context"); } var culture = StrixPlatform.DefaultCultureCode.ToLower(); context.MapLocalizedRoute( "Account_ResetLink", "{language}/Account/SendPasswordLink/{userId}", new { language = culture, controller = MembershipConstants.ACCOUNT, action = "SendPasswordLink", key = UrlParameter.Optional }); context.MapLocalizedRoute( "Account_Default", "{language}/Account/{action}/{key}", new { language = culture, controller = MembershipConstants.ACCOUNT, action = MvcConstants.INDEX, key = UrlParameter.Optional }); context.MapLocalizedRoute( "Membership_admin", "{language}/Admin/Membership/{controller}/{action}/{id}", new { language = culture, controller = "Base", action = MvcConstants.INDEX, id = UrlParameter.Optional }); }