Skip to Content
Pro ASP.NET Core MVC 2
book

Pro ASP.NET Core MVC 2

by Adam Freeman
October 2017
Intermediate to advanced content levelIntermediate to advanced
1024 pages
27h 39m
English
Apress
Content preview from Pro ASP.NET Core MVC 2

© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_17

17. Controllers and Actions

Adam Freeman

(1)London, UK

Every request that comes to your application is handled by a controller. In ASP.NET Core MVC, controllers are .NET classes that contain the logic required to handle a request. In Chapter 3, I explained that the role of the controller is to encapsulate your application logic. This means controllers are responsible for processing incoming requests, performing operations on the domain model, and selecting views to render to the user.

The controller is free to handle the request any way it sees fit as long as it doesn’t stray into the areas of responsibility that belong to the model and view. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Entity Framework Core 2 for ASP.NET Core MVC

Pro Entity Framework Core 2 for ASP.NET Core MVC

Adam Freeman

Publisher Resources

ISBN: 9781484231500Purchase bookPublisher Website