1

so i know there's this 2 main links talking about lowering the cases for the urls, here they are respectively:

How can I have lowercase routes in ASP.NET MVC?

http://goneale.com/2008/12/19/lowercase-route-urls-in-aspnet-mvc/

anyway, they're basically identical but my problem is on the RouteCollectionExtensions class that has a MapLowercaseRoute method. It's giving me a "Extension method must be defined ina top level static class; RouteCollectionExtensions is a nested class."

which kind of makes sense cuz it's just looping around but I basically used the same codes on that 2nd link.. any thoughts?

Community
  • 1
  • 1
gdubs
  • 2,724
  • 9
  • 55
  • 102

1 Answers1

1

Move the RouteCollectionExtensions class into a separate .cs file, don't nest it inside some existing class.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928