Creating the views

Let's return to the web-shop project. If you have not yet added the required assets for debugging and resolved your dependencies, you should do this. Now, a little information on ASP.NET MVC. MVC is short for Model-View-Controller. Basically, we have a controller, which is sitting on our backend waiting for requests. Whenever a request is sent to the controller, it will serve up an HTML page, a so-called view. The controller typically passes a model, some C# class with properties and methods, to the view which the view can use to render information on the page. MVC is a common pattern used in many languages (it is certainly not C#- or .NET-specific).

In your file explorer, you can see that .NET already created a HomeController ...

Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.