O'Reilly logo

ASP.NET MVC 4 Mobile App Development by Andy Meadows

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Areas

While we can use routes to create friendly and meaningful URLs, routing isn't the best tool when it comes to grouping functionality. When we need to group functionality into a different logical container, whether it's to reduce the number of controllers or action methods or to create a location to place code to handle crosscutting concerns, areas are what you want.

While our app focuses on the collection of recipes, we also want to provide a social component for our users allowing them to review recipes submitted by others. Given reviews bring with them their own set of management needs, it makes sense for us to separate this functionality into an area.

Creating the review area

To add an area to our project, simply right-click on the project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required