How to do it...

When structuring an MVC application, sometimes, we need functional separation. The application we develop could be larger than it seems, such that we have several applications in an application. Areas give us the capability to create a lot of MVC structures in function of our needs, and give us a way to manage complex applications more easily. For example, in an e-commerce application, we could need different areas for the administration part of the website, which correspond to different roles (user managing, marketing, motor search reference, orders tracking, stock management), plus the website itself, of course.

Each area has its own controller, model, and view folders, and we will have to configure the area's routes in ...

Get ASP.NET Core MVC 2.0 Cookbook 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.