Optimization code in controllers

Add override method ->: OnActionExecuting this method willlwork before
any action taken.(The same pattern of copy and paste code are Optimize!)