1.

What is Area in MVC

Answer»

MVC have separate folders for Model, View and Controller. In the CASE of large projects, it becomes unmanageable with the default MVC structure. MVC 2 has introduced Area.
The area allows partitioning of large applications into SMALLER units, where each UNIT contains a separate folder structure, which is as the default MVC structure.
For  Example, Large applications may have different modules like admin, HR etc. So Area can contain separate MVC folder structure for each module.

Create MVC Area

To add MVC Area into your application, FOLLOW the below steps:

  1. Right-click to project solution EXPLORER -> Add -> Area
  2. Enter the name of the area in the dialogue box and click Add button
  3. An area with a given name gets added with separate MVC folder structure.


Discussion

No Comment Found