...

/

Setting Up and Creating an ASP.NET Core MVC Website

Setting Up and Creating an ASP.NET Core MVC Website

Learn about the building of ASP.NET Core MVC websites, covering setup, structure, and customization options in the project template.

Set up an ASP.NET Core MVC website

ASP.NET Core Razor Pages are great for simple websites. For more complex websites, it would be better to have a more formal structure to manage that complexity. This is where the Model-View-Controller (MVC) design pattern is useful. It uses technologies like Razor Pages but allows a cleaner separation between technical concerns, as shown in the following list:

  • Models: Classes that represent the data entities and view models used on the website.

  • Views: Razor files, that is, .cshtml files that ...