Beispiel #1
0
 /// <summary>
 /// Registers the EnpointMVC routes for all areas.
 /// </summary>
 /// <param name="rc">The rc.</param>
 /// <returns></returns>
 public static RouteCollection RegisterEnpointMvcForAllAreas(this RouteCollection rc)
 {
     GetRegisteredAreas( ).ForEach(a => {
         AreaRegistrationContext context = new AreaRegistrationContext(a.AreaName, rc, null);
         context.RegisterEndpointMvcForArea( );
     });
     return(rc);
 }