コード例 #1
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "Reports_default",
         "Reports/{controller}/{action}",
         new { controller = "Home", action = "Index" }, new[] { typeof(ExportNotificationsController).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 });
 }
 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 });
 }
コード例 #4
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 });
 }
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "AdminExportAssessment_default",
         "Admin-Export-Assessment/{id}/{controller}/{action}",
         new { action = "Index", controller = "Home", id = UrlParameter.Optional },
         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 });
 }
コード例 #7
0
 public override void RegisterArea(AreaRegistrationContext context) 
 {
     context.MapLowercaseDashedRoute(
         name: "ExportMovement_default",
         url: "Export-Movement/{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(
         "AdminExportMovement_default",
         "Admin-Export-Movement/{id}/{controller}/{action}/{entityId}",
         new { action = "Index", entityId = UrlParameter.Optional },
         new[] { typeof(InternalCaptureController).Namespace });
 }
コード例 #9
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 });
        }