/// <summary>
 ///
 /// </summary>
 /// <param name="config"></param>
 /// <param name="name"></param>
 /// <param name="routeTemplate"></param>
 /// <param name="defaults"></param>
 /// <param name="namespaces"></param>
 /// <returns></returns>
 public static IHttpRoute MapRoute(this HttpConfiguration config, string name, string routeTemplate, object defaults, string[] namespaces)
 {
     return(AfxRouteCollectionExtensions.MapRoute(config, name, routeTemplate, defaults,
                                                  null, null, namespaces));
 }
Esempio n. 2
0
 public static IHttpRoute MapHttpRoute(this HttpRouteCollection routes, string name, string routeTemplate, object defaults, object constraints, string[] namespaces)
 {
     return(AfxRouteCollectionExtensions.MapHttpRoute(routes, name, routeTemplate, defaults,
                                                      constraints, null, namespaces));
 }