title: Access control in a ASP.MVC application
body: <p>I use the following code for controlling access in a ASP.MVC application (this a piece of a controller):</p>
  
  <pre><code>public ActionResult MakeEditable(int id) 
  {
      // controlling part
      if (!User.Identity.IsAuthenticated)
      {
          return RedirectToAction("Login", "User", new {
              callback = Url.Action("MakeEditable", "Article", new { id = id })
          });
      }
  
      // action's body
  }
  </code></pre>
  
  <p>It is very inconvenient for writing the controlling part for each action, so I'm looking the way to avoid it. If it was Nemerle I could use a attribute level macros, but for C#, I think, the best approach is PostSharp. What are the other ways to provide this functionality you could advise?</p>