Barclays interview question

How to restrict controller methods in MVC.