title: How to add a simple user roles - ASP.NET MVC C#
body: <p>I'm pretty new to ASP.NET MVC, and I've been looking at a lot of different ways of adding User Roles
  for my ASP.NET MVC site. I want to use the users' database(s) that are automatically made for you when you make a new ASP.NET MVC project.</p>
  
  <p>That contain the tables:</p>
  
  <ul>
  <li>AspNetRoles</li>
  <li>AspNetUserClaims</li>
  <li>AspNetUserLogins</li>
  <li>AspNetUserRoles</li>
  <li>AspNetUsers</li>
  </ul>
  
  <p>I've been looking at a few tutorials and it's a bit of a minefield for beginners I think.</p>
  
  <p>All I want to be able to do is something like this:</p>
  
  <pre><code>[Authorize(Roles = "admin")]
  public ActionResult Index()
  {
      Return View();
  }
  </code></pre>
  
  <p>So users with the role administrator can access the index page.</p>