public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus) { context.MapRoute("ResourceRoute", "quicklinks/resource/{resourceName}", new { controller = "EmbeddedResource", action = "Index" }, new string[] { "MvcContrib.PortableAreas" }); context.MapRoute("ResourceImageRoute", "quicklinks/images/{resourceName}", new { controller = "EmbeddedResource", action = "Index", resourcePath = "images" }, new string[] { "MvcContrib.PortableAreas" }); context.MapRoute("quicklink", "quicklinks/{controller}/{action}", new { controller = "links", action = "index" }); this.RegisterAreaEmbeddedResources(); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { //此路由不能删除 context.MapRoute("MallAdmin_default", "MallAdmin/{controller}/{action}", new { controller = "home", action = "index", area = "MallAdmin" }, new[] { "NStore.Web.MallAdmin.Controllers" }); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { context.MapRoute( "Transaction_default", "Transaction/{controller}/{action}/{id}", new { action = "Index", id = "" } ); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { //此路由不能删除 context.MapRoute("mobile_default", "mob/{controller}/{action}", new { controller = "home", action = "index", area = "mob" }, new[] { "BrnMall.Web.Mobile.Controllers" }); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { context.MapRoute( "Administrator_default", "Administrator/{controller}/{action}/{id}", new { action = "Index", id = System.Web.Mvc.UrlParameter.Optional } ); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { context.MapRoute("ContentManagementResources", "ContentMangementTools/Resources/{collectionName}/{resourceType}/{resourceName}", new { controller = "ResourceController", action = "GetResource" }, new string[] { "ContentMangementMvc.Controllers" }); base.RegisterArea(context); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { //context.MapRoute( // name: "Administrator_Default", // url: "Administrator/{controller}/{action}/{id}", // defaults: new { action = "Index", id = System.Web.Mvc.UrlParameter.Optional } //); context.MapRoute( name: "Administrator_Default", url: "Administrator/{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = System.Web.Mvc.UrlParameter.Optional }, namespaces: new[] { "LEARNING_AREA.Areas.Administrator.Controllers" } ); }
public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context) { context.MapRoute (name: "Workflow_Default", url: "Workflow/{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = System.Web.Mvc.UrlParameter.Optional }, namespaces: new[] { "MainApplication.Areas.Workflow.Controllers" } ); }