title: How do I add permission to a view or controller dynamically?
body: <p>In all of my asp.net mvc projects up to this point, permissions to controllers are set by using a custom class based on the <code>[Authorize]</code> attribute.<a href="https://i.stack.imgur.com/smwIT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/smwIT.jpg" alt="For example:"></a></p>
  
  <p>However, what if I wanted an administrator role who could grant access to views instead of going through the trouble of having to touch the controller to add/remove roles, re-complile, and push the changes to production. How would I go about doing this?</p>