26Razor Pages and MVC
SETTING UP SERVICES FOR RAZOR PAGES AND MVC
Chapter 24, “ASP.NET Core,” explains the foundation of ASP.NET Core with dependency injection and middleware and the features of HTTP requests and responses. This chapter makes use of dependency injection and middleware for Razor Pages and MVC to reduce the code needed for creating full-featured web applications.
Web pages built based on the Model-View-Controller (MVC) pattern (Figure 26-1) clearly separate models (entity objects representing data), views (the user interface, including HTML code), and functionality (controllers).
Get Professional C# and .NET, 2021st 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.