6
Model-View-Controller
This chapter delves into the Model-View-Controller (MVC) design pattern, a cornerstone of modern software architecture that intuitively structures your code around entities. MVC is perfect for CRUD operations or to tap into the advanced features unavailable in minimal APIs.
The MVC pattern partitions your application into three interrelated parts:
- Models represent our data and business logic.
- Views are the user-facing components.
- Controllers act as intermediaries, mediating the interaction between models and views.
With its emphasis on the separation of concerns, the MVC pattern is a proven pattern for creating scalable and robust web applications. In the context of ASP.NET Core, MVC has provided a practical approach ...
Get Architecting ASP.NET Core Applications - Third Edition 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.