My site is open to all but i have a controller with some method that only the manager with the user and password can enter. I’m saving the bool IsManager in a session.
I would like to use the authorize attribute to block whom ever IsManager == false.
My site is open to all but i have a controller with some method
Share
First define an
ActionFilter:Then use it above the restricted Action(or controller):