title: Asp.Net MVC C# [Authorize(Roles"")] not working
body: <p>I am trying to make role based authorization with my custom manager. I have User Table and Roles Table. The models looks like this</p>
  
  <pre><code>public class Account : EntityModel
  {
      public string Username { get; set; }
  
      public string PasswordHash { get; set; }
  
      public string Email { get; set; }
  
      public Account()
          : base("1", Suid.NewSuid())
      {
          Roles = new List&lt;String&gt;();
      }
  
      public static IEnumerable&lt;Account&gt; GetAll()
      {
          return TableHelper.GetAll&lt;Account&gt;();
      }
  
      public List&lt;String&gt; Roles { get; set; }
  
      public Account Save()
      {
          TableHelper.Save&lt;Account&gt;(this);
          return this;
      }
  
  }
  </code></pre>
  
  <p>Roles Model looks like this</p>
  
  <pre><code>public class Role : EntityModel
  {
      public string Name { get; set; }
      public String Id
      {
          get
          {
              return this.RowKey;
          }
          set
          {
              this.RowKey = value;
          }
      }
  
      public Role()
          : base("1", Suid.NewSuid())
      {
  
      }
  
      public static IEnumerable&lt;Role&gt; GetAll()
      {
          return TableHelper.GetAll&lt;Role&gt;();
      }
  
      public static Role Get(string x)
      {
          return TableHelper.Get&lt;Role&gt;("1", x);
      }
  }
  </code></pre>
  
  <p>I am able to add Role Id in <code>User.Roles</code> list. So I create a role named <code>admin</code> and add it to the users list. It is added successfully.</p>
  
  <p>Then I try this on one of my controllers</p>
  
  <pre><code>[Authorize(Roles = "admin")]
  </code></pre>
  
  <p>but it doesn't work. Am I missing something?</p>