What is an area in mvc?

What is an area in mvc?, someone asked me to explain?

If Application contains a large number of controllers it is difficult to manage. The area simplifies large mvc web application in to smaller groupings.

Area mvc example:

If you are creating news blog, the application divided into areas such as Admin and dashboard blog. Each area represents separate functionalities.

areas in mvc

Creating Area in mvc:

You can create area by right click on the mvc application project solution and clicking on the areas as shown in figure.

Creating Area in mvc

Dashboard area for the blog: mvc dashboard area

It is used to display the blog posts.

Admin area for the blog:

It is for creating and managing the blog posts. mvc admin area

if you want to know how to use html beginform using areas in mvc click here .


Post your comments / questions