What is the correct use of MVC areas in MVC4 to create the following solution structure?

I would like to configure the following solution structure for my MVC4 application and properly design views and controllers using the Areas model defined here

Solution Project.Web --Areas ----Admin ------Views --------AdminBlahView1 --------AdminBlahView2 ----Supervisor ------Views --------SupBlahView1 --------SupBlahView2 ----Evaluator ------Views --------EvalBlahView1 --------EvalBlahView2 Project.Controllers --Areas ----Admin ------AdminBlahView1Controller ------AdminBlahView2Controller ----Supervisor -------SupBlahView1Controller -------SupBlahView2Controller ----Evaluator ------EvalBlahView1Controller ------EvalBlahView2Controller 

Is the "Region" implementation intended for this purpose and where and how should the "ViewLocationFormats" extension be placed for my views and controllers to work properly?

+4
source share
1 answer

Have you tried this? The only difference is that your controllers are in the Controllers subfolder, just like your views are in the Views subfolder.

 Solution Project.Web --Areas ----Admin ------Views --------AdminBlahView1 --------AdminBlahView2 ----Supervisor ------Views --------SupBlahView1 --------SupBlahView2 ----Evaluator ------Views --------EvalBlahView1 --------EvalBlahView2 Project.Controllers --Areas ----Admin ------Controllers --------AdminBlahView1Controller --------AdminBlahView2Controller ----Supervisor ------Controllers --------SupBlahView1Controller --------SupBlahView2Controller ----Evaluator ------Controllers --------EvalBlahView1Controller --------EvalBlahView2Controller 
0
source

All Articles