In an ASP.NET MVC project, where is the best place to put my classes that implement IRouteConstraint in order to keep it organized and stay true to the structure of the project?
+2
A:
I am investing in a separate project with generic MVC definitions like route constraints and custom (but generic) ActionResult-based types. The MVC Web Project then references the genreric MVC Class project.
rasx
2009-08-28 05:22:26
+1: It makes sense when there is a lot of such classes. It could be a class library with `Company.Product.Mvc` namespace!
Anton
2010-02-09 08:27:23