本文整理汇总了C#中System.Web.Mvc.AreaRegistrationContext.MapLowercaseDashedRoute方法的典型用法代码示例。如果您正苦于以下问题:C# AreaRegistrationContext.MapLowercaseDashedRoute方法的具体用法?C# AreaRegistrationContext.MapLowercaseDashedRoute怎么用?C# AreaRegistrationContext.MapLowercaseDashedRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.Mvc.AreaRegistrationContext
的用法示例。
在下文中一共展示了AreaRegistrationContext.MapLowercaseDashedRoute方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterArea
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapLowercaseDashedRoute(
"Reports_default",
"Reports/{controller}/{action}",
new { controller = "Home", action = "Index" }, new[] { typeof(ExportNotificationsController).Namespace });
}
示例2: RegisterArea
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 });
}
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:7,代码来源:AdminImportNotificationMovementsAreaRegistration.cs
示例3: RegisterArea
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: RegisterArea
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 });
}
示例5: RegisterArea
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: RegisterArea
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: RegisterArea
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: RegisterArea
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: RegisterArea
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 });
}