Take advantage of filters to execute custom code at specific points in the request processing pipeline and avoid code duplication across actions. Filters allow you to run code at certain stages of the ...
Applying role-based security is easy in ASP.NET MVC: Just decorate the relevant action method/controller class with the Authorization attribute, specify the allowed roles, and you're done. Every once ...