public static void MapAttributeRoutesInControllers(this RouteCollection routes, IEnumerable <Type> controllers, IInlineConstraintResolver constraintResolver, IDirectRouteProvider routeProvider) { var mvcAssemblyReflector = new MvcAssemblyReflector(); mvcAssemblyReflector.MapAttributeRoutes(routes, controllers, constraintResolver, routeProvider); }
public static void MapAttributeRoutesInControllers(this RouteCollection routes, IEnumerable <Type> controllers) { var mvcAssemblyReflector = new MvcAssemblyReflector(); mvcAssemblyReflector.MapAttributeRoutes(routes, controllers); }