views:

99

answers:

1

My controller has to enumerate all the areas in the application. Is it possible? And how?

+2  A: 

From this issue, something like that =>

RouteTable.Routes.OfType<Route>()
            .Where(r => r.DataTokens != null)
            .Select(r => (string) r.DataTokens["area"]);
Arnis L.