title: User.IsInRole("Admin") returning always false in _Layout.cshtml
body: <p>In layout.cshtml I am checking whether the current user is an admin or not. If so, then a different menu is shown. However, it is always returning false, even when logging in with an admin.
  I am using the code below:</p>
  
  <pre><code>@if (User.Identity.IsAuthenticated == false)
  {
      &lt;li&gt;&lt;a href="\Users\Login"&gt;Log in&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="\Users\Register"&gt;Register&lt;/a&gt;&lt;/li&gt;
  }
  
  else
  {
      &lt;li&gt;&lt;a href="\Users\Logout"&gt;Log out&lt;/a&gt;&lt;/li&gt;
      if (User.IsInRole("Admin"))
      {
          &lt;li&gt;&lt;a href="\Users\List"&gt;Users List&lt;/a&gt;&lt;/li&gt;
      }
  }
  </code></pre>