Question

I am little bit confuse with Asp.net MVC Area.

When we talk about WebForms we say, for Administrative tasks, you must have an Admin folder to separate the admin task.

In MVC how i will treat my Admin tasks?

I will go for Admin Area or Admin Controllers,

Because if i will write controller for Admin tasks, each and every task will be written in one controller (AdminController) or if i will write Area -> Controller, means i will need to write at-least two controllers for each feature.

Second if we breaks the application in Areas (as modules) how i will manage Admin task for each Area.

Was it helpful?

Solution

Yes, those are your options; you can use one admin controller, or separate admin action methods in different controllers broken or take advantage of MVC 2 areas feature (if possible depending on requirements).

How are your administrative tasks laid out? For instance, if you have a customers and products section, do you have administrative features with each of these areas, or do you have admin features for the site only, or something like that?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top