public override void RegisterArea(AreaRegistrationContext context) { context.MapLowerCaseUrlRoute( "Admin_default", "admin/{controller}/{action}/{id}", new { controller="Home", action = "Index", id = UrlParameter.Optional }, new[] { "Mes.Demo.Web.Areas.Admin.Controllers" } ); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapLowerCaseUrlRoute( "Manage_default", "Manage/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new[] { "OSharp.Demo.Web.Areas.Manage.Controllers" } ); }
public override void RegisterArea(AreaRegistrationContext context) { context.MapLowerCaseUrlRoute( "Admin_default", "Admin/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new string[] { "WoBlog.Web.Areas.Admin.Controllers", "WoBlog.Web.Areas.Admin.Controllers.Identity" } ); }
public override void RegisterArea(AreaRegistrationContext context) { HttpConfiguration config = GlobalConfiguration.Configuration; config.Routes.MapHttpRoute( "ServiceActionApi", "api/service/{controller}/{action}/{id}", new { area = "Service", id = RouteParameter.Optional } ); config.Routes.MapHttpRoute( "ServiceApi", "api/service/{controller}/{id}", new { area = "Service", id = RouteParameter.Optional } ); context.MapLowerCaseUrlRoute( "Service_default", "api/service/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional } ); }