Quick lap around MVC

MVC stands for Model-View-Controller. The intent of this pattern is to achieve separation of concerns. In general terms, we can draw an analogy of MVC with "Division of labour". In this architectural pattern, the application is divided into three distinct components: the Model, the View, and the Controller. When a user requests a resource in the server, it is routed to a Controller which works with the Model to perform user actions and/or CRUD (Create, Read, Update, Delete) operations. The Controller then chooses the View to display the user interface to the user, and provides it with the required Model data. The following diagram displays the three main components:

We see that in the diagram, both the View and the Controller ...

Get .NET Core 2.0 By Example 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.