I started programming with MVC3 without any knowledge of areas. As the application grows bigger, I would like to use areas to organize my code, but most of my controllers are not inside any areas at all.
How do I quickly move an existing controller into an area?
Create an Area, move your controller class file into the the
Controllersfolder of that area and then edit your controller namespace to match theArea. Then move your views into the areaViewsdirectory.But be aware you have to update all links to that controller by having the area name in the URL.