public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapRoute(
                "Curriculum",
                "Curriculum/{CurriculumId}/{action}",
                new { controller = "Curriculum" });

            routes.MapRoute(
                "Curriculums",
                "Curriculum/{action}",
                new { controller = "Curriculum" });

            routes.MapRoute(
                "CurriculumChapter",
                "CurriculumChapter/{CurriculumChapterId}/{action}",
                new { controller = "CurriculumChapter" });

            routes.MapRoute(
                "CurriculumChapters",
                "Curriculum/{CurriculumId}/CurriculumChapter/{action}",
                new { controller = "CurriculumChapter" });

            routes.MapRoute(
                "CurriculumChapterTopic",
                "CurriculumChapterTopic/{CurriculumChapterTopicId}/{action}",
                new { controller = "CurriculumChapterTopic" });

            routes.MapRoute(
                "CurriculumChapterTopics",
                "CurriculumChapter/{CurriculumChapterId}/CurriculumChapterTopic/{action}",
                new { controller = "CurriculumChapterTopic" });
        }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus)
        {
            base.RegisterArea(context, bus);

            context.MapRoute("Authorization"
                , "Auth/{action}"
                , new { controller = "Auth", action = "Index" });

            context.MapRoute("AuthorizationResources"
                , "AuthResource/{resourceType}/{resourceName}"
                , new { controller = "AuthResource", action = "GetResource" });

            context.MapRoute("EmbeddedOpenIdResources"
                , "EmbededOpenIdResources/{resourceName}"
                , new { controller = "OpenIdResource", action = "GetOpenIdResource" });

            context.MapRoute("OpenIdResources"
                , "OpenIdResources/{resourceType}/{resourceName}"
                , new { controller = "OpenIdResource", action = "GetResource" });

            context.MapRoute(
                "OpenIdDiscover",
                "Auth/Discover"
            );
        }
Exemple #3
0
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            //routes.MapRoute(
            //    "Pipe-Default",
            //    "Pipe/{action}/{id}",
            //    new { controller = "Pipe", action = "Index", id = UrlParameter.Optional },
            //    new { action = "(Detail)", id = new IsLong() },
            //    controllerNamespaces);

            routes.MapRoute(
                "Pipe-Producer-Default",
                "Pipe/Producer/{action}",
                new { controller = "Producer", action = "Index" },
                new { action = "(Index|Add|Create|Update)" },
                controllerNamespaces
            );

            routes.MapRoute(
                "Pipe-Producer-EditDelete",
                "Pipe/Producer/{action}/{id}",
                new { controller = "Producer" },
                new { id = new IsGuid(), action = "(Edit|Delete)" },
                controllerNamespaces
            );
        }
        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();
        }
Exemple #5
0
 public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapRoute(
         "Statistics",
         "Stats/{action}",
         new { controller = "Stats", action = "Index" });
 }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapRoute(
                "Discipline",
                "Discipline/{DisciplineID}/{action}",
                new { controller = "Discipline" });

            routes.MapRoute(
                "DisciplineAction",
                "DisciplineAction/{action}",
                new { controller = "Discipline" });

            routes.MapRoute(
                "Disciplines",
                "Discipline/{action}",
                new { controller = "Discipline", action = "Index" });

            routes.MapRoute(
               "Chapter",
               "Chapter/{ChapterId}/{action}",
                new { controller = "Chapter" });

            routes.MapRoute(
                "Chapters",
                "Discipline/{DisciplineId}/Chapter/{action}",
                new { controller = "Chapter" });

            routes.MapRoute(
               "ChapterAction",
               "ChapterAction/{action}",
                new { controller = "Chapter" });

            routes.MapRoute(
               "Topic",
               "Topic/{TopicId}/{action}",
                new { controller = "Topic" });

            routes.MapRoute(
                "Topics",
                "Chapter/{ChapterId}/Topic/{action}",
                new { controller = "Topic" });

            routes.MapRoute(
               "TopicAction",
               "TopicAction/{action}",
                new { controller = "Topic" });
        }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // Reports
            routes.MapRoute(
                "Reports-Default",
                "Reports/ReportSort/{action}",
                new { controller = "ReportSort" },
                new { action = "(Index|Month|FinishDigger|FinishPipetype|IsNotValid|ReturnInValid|Incoming|DownloadIncoming|Receiving|DownloadReceiving|Detection|DownloadDetection|Send|DownloadSend|Feedingback|DownloadFeedingback|Final|DownloadFinal|Weekly|DownloadWeekly|Monthly|DownloadMonthly|UnValid|DownloadUnValid|NormalSit|DownloadNormalSit|TestSit|DownloadTestSit)" },
                this.controllerNamespaces);

            routes.MapRoute(
               "Reports-Edit",
                "Reports/ReportSort/{action}/{code}",
                new { controller = "ReportSort" },
               new { code = "^[-|a-z|A-Z|0-9]+$", action = "(IsNotValid|ReturnInValid)" },
               this.controllerNamespaces);
        }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // ReturningNotice
            routes.MapRoute(
                "ReturningNotice-Default",
                "Returning/ReturningNotice/{action}",
                new { controller = "ReturningNotice" },
                new { action = "(Index|Add|Edit|CheckCode|Create|Update|DeleteReturningNotice)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "ReturningNotice-Edit",
                "Returning/ReturningNotice/{action}/{id}",
                new { controller = "ReturningNotice" },
                new { action = "(Detail|Records|UpdateRecords|UpdatePipesState|SendNotice|FindPipe|FindPipes|Edit|Verify|DeleteReturningNotice|GetPipeBySelect|CancleVerify|CancleSend|DownloadDoc)" },
                this.controllerNamespaces);
        }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // OutgoinNotice
            routes.MapRoute(
                "OutgoinNotice-Default",
                "Outgoing/OutgoingNotice/{action}",
                new { controller = "OutgoingNotice" },
                new { action = "(Index|Add|Edit|CheckCode|Create|Update|DeleteOutgoingNotice|EditTotal|UpdateTotal)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "OutgoinNotice-Edit",
                "Outgoing/OutgoingNotice/{action}/{id}",
                new { controller = "OutgoingNotice" },
                new { action = "(Detail|Records|UpdateRecords|FindPipe|FindPipes|Edit|Verify|DownloadDoc|DownloadExcel|DownloadTransportDoc|UpdateTrunks|DownloadOutgoingNotice|DeleteOutgoingNotice|GetPipeBySelect|CancleVerify)" },
                this.controllerNamespaces);
        }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // TransferNotice
            routes.MapRoute(
                "TransferNotice-Default",
                "PosTransfer/TransferNotice/{action}",
                new { controller = "TransferNotice" },
                new { action = "(Index|Add|CheckCode|Create|Update|FindTransferPipes)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "TransferNotice-Edit",
                "PosTransfer/TransferNotice/{action}/{id}",
                new { controller = "TransferNotice" },
                new { action = "(Detail|Edit|Delete|Records|UpdateRecords|Verify)" },
                this.controllerNamespaces);
        }
 public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
 {
     //此路由不能删除
     context.MapRoute("mobile_default",
                      "mob/{controller}/{action}",
                       new { controller = "home", action = "index", area = "mob" },
                       new[] { "BrnShop.Web.Mobile.Controllers" });
 }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // ReportDetails
            routes.MapRoute(
                "ReportDetail-Default",
                "ReportDetail/ReportDetails/{action}",
                new { controller = "ReportDetails" },
                new { action = "(Index|Add|Create|OneKeyUpdate)" },
                this.controllerNamespaces);

            routes.MapRoute(
               "ReportDetail-Edit",
               "ReportDetail/ReportDetails/{action}/{id}",
               new { controller = "ReportDetails" },
               new { action = "(Detail)" },
               this.controllerNamespaces);
        }
Exemple #13
0
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // OutgoinNotice
            routes.MapRoute(
                "OutgoinNotice-Default",
                "Outgoing/OutgoingNotice/{action}",
                new { controller = "OutgoingNotice" },
                new { action = "(Index|Add|CheckCode|Create)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "OutgoinNotice-Edit",
                "Outgoing/OutgoingNotice/{action}/{id}",
                new { controller = "OutgoingNotice" },
                new { action = "(Detail|Records|UpdateRecords|FindPipe|FindPipes|Detail|Verify|DownloadDoc)" },
                this.controllerNamespaces);
        }
Exemple #14
0
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // FileShare
            routes.MapRoute(
                "Front-Default",
                "{action}",
                new { controller = "Index" },
                new { action = "(Index|News|Detail|Search)" },
                this.controllerNamespaces);

            routes.MapRoute(
               "Front-Detail",
               "Front/Index/{action}/{id}",
               new { controller = "Index" },
               new { id = new IsGuid(), action = "(Download)" },
               this.controllerNamespaces);
        }
Exemple #15
0
 public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapRoute(
         "Search",
         "Search/{action}",
         new { controller = "Search" }
     );
 }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            context.MapRoute("Blog",
                                "Blog/{controller}/{action}/{id}",
                                new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                                new string[] { "Blog.Controllers" });

            base.RegisterArea(context);
        }
        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);
        }
Exemple #18
0
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            //此路由不能删除
            context.MapRoute("storeadmin_default",
                              "storeadmin/{controller}/{action}",
                              new { controller = "home", action = "index", area = "storeadmin" },
                              new[] { "BrnMall.Web.StoreAdmin.Controllers" });

        }
Exemple #19
0
        internal static void Register(System.Web.Routing.RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
 public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
 {
     context.MapRoute(
        "_PageDraft_default",
        "_PageDraft/{controller}/{action}/{id}",
        new { action = "Index", id = UrlParameter.Optional },
        new[] { "Kooboo.CMS.Modules.DiscardDraft", "Kooboo.Web.Mvc", "Kooboo.Web.Mvc.WebResourceLoader" }
    );
     base.RegisterArea(context);
 }
Exemple #21
0
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            //ViewEngines.Engines.Insert(0, new SupportViewEngine());

            routes.MapRoute("AtrendUsa.Plugin.Misc.Support",
                 "Support",
                 new { controller = "Support", action = "Index" },
                 new[] { "AtrendUsa.Plugin.Misc.Support.Controllers" }
            );
        }
Exemple #22
0
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus)
        {
            bus.Send(new RegistrationMessage("Registering Login Portable Area"));
            context.MapRoute(
                "login", 
                "login/{controller}/{action}", 
                new { controller = "login", action = "index" });

            this.RegisterAreaEmbeddedResources();
        }
 public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapRoute(
        "Account", // Route name
        "Account/{action}/{id}", // URL with parameters
        new { controller = "Account", action = "Index", id = UrlParameter.Optional }, // Parameter defaults
        new { controller = "(Account)", action = "(Index|Add|Create|Edit|Update|Delete|CheckLoginName|Login|LogOut|ReLogin|EditPassword|UpdatePassword)" },
        controllerNamespaces
        );
 }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // Block 模块
            routes.MapRoute(
                "Authority-Block",
                "Authority/Block/{action}/{id}",
                new { controller = "Block", action = "Index", id = UrlParameter.Optional },
                new { action = "(Index|Edit|Update|Add|CheckBlockName|Create|Delete|Operation|GetDetail)" },
                this.controllerNamespaces);

            // Action 功能
            routes.MapRoute(
               "Authority-Function",
               "Authority/Function/{action}/{id}",
               new { controller = "Action", id = UrlParameter.Optional },
               new { action = "(Index|Edit|CheckActionUnique|Update|Add|CheckActionName|Create|Delete)" },
               this.controllerNamespaces);

            // 角色
            routes.MapRoute(
               "Authority-Role",
               "Authority/Role/{action}",
               new { controller = "Role" },
               new { action = "(Index|Edit|Update|Add|CheckRoleName|Create|Delete|Operation|UpdateFunctions)" },
               this.controllerNamespaces);

            routes.MapRoute(
               "Authority-Account-Role",
               "Authority/AccountRole/{action}/{id}",
               new { controller = "AccountRole", id = UrlParameter.Optional },
               new { action = "(Index|Edit|SearchAccount|UpdateRoles|Update|Add|CheckRoleName|Create|Delete|Operation)" },
               this.controllerNamespaces);

            // 安全

            routes.MapRoute(
             "Authority-Security",
             "Authority/Security/{action}",
             new { controller = "Security", },
             new { action = "(ReLogin)" },
             this.controllerNamespaces);
        }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            context.MapRoute(
                name: AreaName + "_default",
                url: AreaName + "/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new[] { "Kooboo.Commerce.CMSIntegration.DataSources.Controllers" }
                );

            base.RegisterArea(context);
        }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            context.MapRoute(
                name: AreaName + "_default",
                url: AreaName + "/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new[] { "Kooboo.Commerce.Activities.RetailPriceDiscount.Controllers", "Kooboo.Web.Mvc" }
            );

            base.RegisterArea(context);
        }
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapRoute(
                "Account",
                "Account/{action}",
                new { controller = "Account" }
            );

            routes.MapRoute(
                "Group",
                "Group/{action}",
                new { controller = "Group" }
            );

            routes.MapRoute(
                "User",
                "User/{action}",
                new { controller = "User" }
            );
        }
Exemple #28
0
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            // NormalCheckTask
            routes.MapRoute(
                "NormalCheck-Default",
                "TransferNormalCheck/NormalCheckTask/{action}",
                new { controller = "NormalCheckTask" },
                new { action = "(Index|Add|CheckCode|Create|CheckWorkNO)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "NormalCheck-Edit",
                "TransferNormalCheck/NormalCheckTask/{action}/{code}",
                new { controller = "NormalCheckTask" },
                new { code = "^[-|a-z|A-Z|0-9]+$", action = "(Detail|Receive|DoReceive|DownloadTaskDoc|Approve|CheckResults|UpdateCheckResults|DownloadReportDoc|MainCheckerSign|Verify|DoVerify)" },
                this.controllerNamespaces);

            // Transfer Task
            routes.MapRoute(
                "TransferTask-Edit",
                "TransferNormalCheck/TransferTask/{action}/{id}",
                new { controller = "TransferTask" },
                new { id = new IsGuid(), action = "(Finish)" },
                this.controllerNamespaces);

            // PipeNeedNotice
            routes.MapRoute(
                "PipeNeedNotice-Default",
                "TransferNormalCheck/PipeNeedNotice/{action}",
                new { controller = "PipeNeedNotice" },
                new { action = "(Index|Add|CheckCode|Create)" },
                this.controllerNamespaces);

            routes.MapRoute(
                "PipeNeedNotice-Edit",
                "TransferNormalCheck/PipeNeedNotice/{action}/{id}",
                new { controller = "PipeNeedNotice" },
                new { id = new IsGuid(), action = "(Detail|Edit|Update|DeleteItem|AddItem|UpdateItem)" },
                this.controllerNamespaces);
        }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            context.MapRoute(
                name: AreaName + "_default",
                url: AreaName + "/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new[] { "Kooboo.Commerce.Shipping.UPS.Controllers", "Kooboo.Web.Mvc", "Kooboo.Web.Mvc.WebResourceLoader" }
                );

            Kooboo.Web.Mvc.WebResourceLoader.ConfigurationManager.RegisterSection(AreaName, AreaHelpers.CombineAreaFilePhysicalPath(AreaName, "WebResources.config"));

            base.RegisterArea(context);
        }
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus)
        {
            context.MapRoute("ListScriptRoute", "List/Scripts/{resourceName}",
                             new {controller = "CachedResource", action = "Index"},
                             new[] { "Seznam.Web.Common" });
            context.MapRoute("ListViewModels", "List/ViewModels/{resourceName}",
                  new { controller = "CachedResource", action = "Index", resourcePath = "Scripts.ViewModels" },
                  new[] { "Seznam.Web.Common" });

            context.MapRoute(
                "ListBase",
                "List/Summary",
                new { controller = "Home", action="Summary" },
                new[] { typeof(HomeController).Namespace }
            );

            context.MapRoute(
                "List",
                "List/{controller}/{action}",
                new { controller="Home", action = "Index" },
                new []{typeof(HomeController).Namespace}
            );
            RegisterAreaEmbeddedResources();
        }