예제 #1
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.Routes.MapMvcAttributeRoutes();

            context.MapLowercaseDashedRoute(
                name: "AeReturn_holding",
                url: "ae-return/holding/{organisationId}",
                defaults: new { action = "Index", controller = "Holding" },
                namespaces: new[] { typeof(HoldingController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AeRedirect.ReturnsRouteName,
                url: "ae-return/returns/{organisationId}/{action}",
                defaults: new { action = "Index", controller = "Returns" },
                namespaces: new[] { typeof(ReturnsController).Namespace });
        }
예제 #2
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "Reports_default",
         "Reports/{controller}/{action}",
         new { controller = "Home", action = "Index" }, new[] { typeof(ExportNotificationsController).Namespace });
 }
예제 #3
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.Routes.MapMvcAttributeRoutes();

            context.MapLowercaseDashedRoute(
                name: "Aatf_default",
                url: "Aatf/{organisationId}/{controller}/{action}/",
                defaults: new { action = "Index", controller = "Home" },
                namespaces: new[] { typeof(HomeController).Namespace });

            context.MapLowercaseDashedRoute(
                name: "Aatf_ContactDetails",
                url: "Aatf/{organisationId}/{controller}/{action}/{aatfId}",
                defaults: new { action = "Index", controller = "ViewAatfContactDetails" },
                namespaces: new[] { typeof(ContactDetailsController).Namespace });
        }
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute("AdminImportNotificationMovements_default",
                                     "Admin-Import-Notification-Movements/{id}/{controller}/{action}",
                                     new { action = "Index", controller = "Home" },
                                     new[] { typeof(CaptureController).Namespace });
 }
예제 #5
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(name: "AdminExportNotificationMovements_default",
                                     url: "Admin-Export-Notification-Movements/{id}/{controller}/{action}",
                                     defaults: new { action = "Index", controller = "Home" },
                                     namespaces: new[] { typeof(HomeController).Namespace });
 }
예제 #6
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         name: "AddressBook_default",
         url: "Address-Book/{controller}/{action}/{id}",
         defaults: new { action = "Index", controller = "Home", id = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         name: "NotificationApplication_default",
         url: "Notification-Application/{id}/{controller}/{action}/{entityId}",
         defaults: new { action = "Index", controller = "Home", entityId = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
예제 #8
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "AdminImportAssessment_default",
         "Admin-Import-Assessment/{id}/{controller}/{action}",
         new { action = "Index", controller = "Home", id = UrlParameter.Optional },
         new[] { typeof(KeyDatesController).Namespace });
 }
예제 #9
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "FinancialGuarantee_default",
         "Financial-Guarantee/{controller}/{action}/{id}",
         new { action = "Index", id = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
예제 #10
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapLowercaseDashedRoute(
                name: "admin_producers_search",
                url: "admin/producers/find-producer",
                defaults: new { action = "Search", controller = "Producers" },
                namespaces: new[] { typeof(ProducersController).Namespace });

            context.MapLowercaseDashedRoute(
                name: "admin_charges",
                url: "admin/charge/{authority}/{action}/{id}",
                defaults: new { controller = "Charge", authority = UrlParameter.Optional, id = UrlParameter.Optional },
                namespaces: new[] { typeof(HomeController).Namespace });

            context.MapLowercaseDashedRoute(
                name: "admin_default",
                url: "admin/{controller}/{action}/{id}",
                defaults: new { action = "Index", controller = "Home", id = UrlParameter.Optional },
                namespaces: new[] { typeof(HomeController).Namespace });
        }
예제 #11
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.Routes.MapMvcAttributeRoutes();

            context.MapLowercaseDashedRoute(
                name: "AatfReturn_holding",
                url: "aatf-return/holding/{organisationId}",
                defaults: new { action = "Index", controller = "Holding" },
                namespaces: new[] { typeof(HoldingController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.NonObligatedDcfRouteName,
                url: "aatf-return/{returnId}/non-obligated-dcf/{action}",
                defaults: new { action = "Index", controller = "NonObligated", dcf = true },
                namespaces: new[] { typeof(NonObligatedController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.NonObligatedRouteName,
                url: "aatf-return/{returnId}/non-obligated/{action}",
                defaults: new { action = "Index", controller = "NonObligated", dcf = false },
                namespaces: new[] { typeof(NonObligatedController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.SelectPcsRouteName,
                url: "aatf-return/{organisationId}/select-pcs/{returnId}/{action}",
                defaults: new { action = "Index", controller = "SelectYourPcs" },
                namespaces: new[] { typeof(SelectYourPcsController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.RemovedPcsRouteName,
                url: "aatf-return/{organisationId}/removed-pcs/{returnId}/{action}",
                defaults: new { action = "PcsRemoved", controller = "SelectYourPcs" },
                namespaces: new[] { typeof(SelectYourPcsController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.SelectReportOptionsRouteName,
                url: "aatf-return/{organisationId}/select-report-options/{returnId}/{action}",
                defaults: new { action = "Index", controller = "SelectReportOptions" },
                namespaces: new[] { typeof(SelectReportOptionsController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.SelectReportOptionsDeselectRouteName,
                url: "aatf-return/{organisationId}/select-report-options-confirm/{returnId}/{action}",
                defaults: new { action = "Index", controller = "SelectReportOptionsDeselect" },
                namespaces: new[] { typeof(SelectReportOptionsDeselectController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.SelectReportOptionsNilRouteName,
                url: "aatf-return/{organisationId}/nil-report-options-confirm/{returnId}/{action}",
                defaults: new { action = "Index", controller = "SelectReportOptionsNil" },
                namespaces: new[] { typeof(SelectReportOptionsNilController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.AatfSchemeSelectedRoute,
                url: "aatf-return/{returnId}/{controller}/{aatfId}/scheme/{schemeId}/{action}",
                defaults: new { action = "Index", controller = "ReceivedPcsList" },
                namespaces: new[] { typeof(ReceivedPcsListController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.AatfOrganisationSelectedRoute,
                url: "aatf-return/{returnId}/{controller}/{aatfId}/{organisationId}/{action}",
                defaults: new { action = "Index", controller = "ReusedOffSite" },
                namespaces: new[] { typeof(ReusedOffSiteController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.AatfSelectedRoute,
                url: "aatf-return/{returnId}/{controller}/{aatfId}/{action}",
                defaults: new { action = "Index", controller = "ReceivedPcsList" },
                namespaces: new[] { typeof(ReceivedPcsListController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.ReturnsCopyRouteName,
                url: "aatf-return/returns/{organisationId}/copy/{returnId}",
                defaults: new { action = "Copy", controller = "Returns" },
                namespaces: new[] { typeof(ReturnsController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.Download,
                url: "aatf-return/returns-download/{returnId}/",
                defaults: new { action = "Download", controller = "ReturnsSummary" },
                namespaces: new[] { typeof(ReturnsSummaryController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.ReturnsRouteName,
                url: "aatf-return/returns/{organisationId}/{action}",
                defaults: new { action = "Index", controller = "Returns" },
                namespaces: new[] { typeof(ReturnsController).Namespace });

            context.MapLowercaseDashedRoute(
                name: AatfRedirect.Default,
                url: "aatf-return/{controller}/{returnId}/{action}",
                defaults: new { action = "Index", controller = "AatfTaskList" },
                namespaces: new[] { typeof(AatfTaskListController).Namespace });
        }