Chapter 4. Creating web pages with MVC controllers

This chapter covers

  • Introducing the Model-View-Controller (MVC) design pattern
  • Using MVC in ASP.NET Core
  • Creating MVC controllers for serving web pages

In chapter 3, you learned about the middleware pipeline, which defines how an ASP.NET Core application responds to a request. Each piece of middleware can modify or handle an incoming request, before passing the request to the next middleware in the pipeline.

In ASP.NET Core web applications, the final piece of middleware in the pipeline will normally be MvcMiddleware. This is typically where you write the bulk of your application logic, by calling various other classes in your app. It also serves as the main entry point for users to interact ...

Get ASP.NET Core in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.