© Adam Freeman 2017

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

31. Model Conventions and Action Constraints

Adam Freeman

(1)London, UK

Throughout this book, I have emphasized that there is no magic involved in MVC development and that a small peek behind the scenes reveals how everything fits together to deliver the features that I have described in previous chapters.

In this final chapter of the book, I describe two useful features that let you customize the way your MVC application works. Model conventions allow you to replace the conventions used to create controllers and actions, overriding those that are applied by default. Action constraints allow you to specify what kind of requests an action can be ...

Get Pro ASP.NET Core MVC 2 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.