I'm using MVC3 and I need to deploy the same website to multiple locations, but with certain controllers disabled. The controllers to disable share the same base controller class.
I think I should be able to do this using different build configurations with each configuration having a different set of compiler switches to control which sets of controllers are enabled or disabled.
I'm having trouble determining the best way to achieve this. Can anyone help? Perhaps something in OnActionExecuting
?
Thanks