MapRouteArea() public static method

public static MapRouteArea ( this context, string name, string url, System.Web.Mvc.ActionResult result ) : Route
context this
name string
url string
result System.Web.Mvc.ActionResult
return System.Web.Routing.Route
Example #1
0
 public static Route MapRouteArea <TActionResult>(this AreaRegistrationContext context, string name, string url, Task <TActionResult> taskResult, object defaults, object constraints, string[] namespaces) where TActionResult : ActionResult
 {
     return(T4Extensions.MapRouteArea(context, name, url, taskResult.Result, defaults, constraints, namespaces));
 }
Example #2
0
 public static Route MapRouteArea <TActionResult>(this AreaRegistrationContext context, string name, string url, Task <TActionResult> taskResult) where TActionResult : ActionResult
 {
     return(T4Extensions.MapRouteArea(context, name, url, taskResult.Result, (string[])null));
 }