Пример #1
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            RegisterIoc();
            var ns = new[] { "MvcSolution.Web.Public.Controllers.*" };

            context.Map("logout", "account", "logout", ns);
            context.Map("login", "account", "login", ns);
            context.Map("register", "account", "register", ns);
        }
Пример #2
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            Ioc.RegisterInheritedTypes(typeof(Services.Mobile.IMobileOrderService).Assembly, typeof(ServiceBase));

            var ns = new[] { "Xprepay.Web.Mobile.Controllers.*" };

            context.Map("mobile", "home", "index", ns);
            context.Map("mobile/{controller}/{action}/{id}", new { controller = "home", action = "index", id = UrlParameter.Optional }, ns);
        }
Пример #3
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            Ioc.RegisterInheritedTypes(typeof(Services.Admin.IUserService).Assembly, typeof(ServiceBase));

            var ns = new[] { "MvcSolution.Web.Admin.Controllers.*" };

            context.Map("admin", "user", "index", ns);
            context.Map("admin/{controller}/{action}/{id}", new { controller = "home", action = "index", id = UrlParameter.Optional }, ns);
        }
Пример #4
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            Ioc.RegisterInheritedTypes(typeof(Services.Public.IUserService).Assembly, typeof(ServiceBase));

            var ns = new[] { "Xprepay.Web.Public.Controllers.*" };

            //context.Map("p/{urlKey}", "article", "details", ns);
            context.Map("login", "home", "login", ns);
            context.Map("logout", "home", "logout", ns);
            context.Map("public/{controller}/{action}/{id}", new { controller = "home", action = "login", id = UrlParameter.Optional }, ns);
        }
Пример #5
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            RegisterIoc();
            var ns       = new[] { "MvcSolution.Web.Admin.Controllers.*" };
            var defaults = new { controller = "home", action = "index", id = UrlParameter.Optional };

            context.Map("admin/{controller}/{action}/{id}", defaults, ns);
        }