What is the correct way to restrict or allow access to a controller based on some criteria. I am having hard time to wrap my head around it...
For Example, if i say somewhere (in db or some other persistence) that 'LocationA' can be served with 'ActionController', 'ReviewController' & 'PlacementController'. Then have to see that where 'UserA' has the right to view or reach to 'PlacementController' or any other Controller? In other case it might be 'LocationB' can be served with 'ActionController' & 'ReviewController' only and then have to check if 'UserB' can view/reach to these controller?
What is the best approach for this or How i will implement this?
I am using MVC4 (can move to MVC5) if it will help..
Any guidance will be appreciated