I\'ve an Admin area and I want only Admins to enter the area. I considered adding the Authorized attribute to every controller in the Admin area. Isn\'t there an elegant sol
If all of your admin code is in one controller then add Authorize to the entire class.
[Authorize] public class AdminController : Controller { ....... }