public override void RegisterArea(AreaRegistrationContext context) { context.MapAreaRouteWithName("ThumbnailHandler", "Thumbnail/{id}", new { controller = "Media", action = "Thumbnail", id = UrlParameter.Optional }, new[] { NameSpaces } ); context.MapAreaRouteWithName("AdminDefault", "Admin/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }, new[] { NameSpaces } ); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapAreaRouteWithName("BackgroundTasksDefault", "BackgroundTasks/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new[] { NameSpaces }); }
public override void RegisterArea(AreaRegistrationContext context) { if (!SiteInitializer.IsSetupFinish()) { context.MapAreaRouteWithName("Setup Step", "Setup/{action}", new { controller = "Setup" }, new[] { NameSpaces }); context.MapAreaRouteWithName("Setup", "{*url}", new { controller = "Setup", action = "Index" }, new[] { NameSpaces }); } }