ASP.NET MVC’s conventions are pretty straightforward. This is what is expected of your application’s structure:
- Each Controller’s class name ends with Controller - ProductController, HomeController, and so on, and lives in the Controllers directory.
- There is a single Views directory for all the Views of your application.
- Views that Controllers use live in a subdirectory of the Views main directory and are named according to the controller name (minus the Controller suffix). For example, the views for the ProductController discussed earlier would live in /Views/Product.