Search code examples
asp.net-mvcnaming-conventionspluralizeasp.net-mvc-controller

ASP.NET MVC Controller Naming Pluralization


RESTful conventions indicate using plural nouns over singular objects.

What is the pluralization convention for naming ASP.NET MVC controllers, i.e.
ProductController or ProductsController?


Solution

  • Some MVC Frameworks use plurals, however the MVC project templates contains a controller called AccountController thus suggesting singlular naming.

    It doesn't matter. As with most things in the Asp.net MVC framework the choice is yours. There is no real conventions.

    It's my personal opinion but what matters is that you pick a scheme and be consistent!