title: UserInRole just doesn't seem to work in MVC 5 project
body: <p>I have an MVC 5 demo application where I want users to be thrown to different menu pages on login. I am using ASP.NET Identity tables and created users and put them in roles. I created a controller for each AdminMenu and UserMenu with an Index action that points to corresponding views.</p>
  
  <p>When I put a breakpoint my code in the Login post method skips over the UserInRoles section to the return View () all the way to the end, sending me back to the login page. I tried other approaches using rolesArray = Roles.GetRolesForUser(). What am I doing wrong?</p>
  
  <pre><code>// POST: /Account/Login
  [HttpPost]
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; Login(LoginViewModel model, string returnUrl) {
      if (ModelState.IsValid) {
          var user = await UserManager.FindAsync(model.UserName, model.Password);
          if (user != null) {
              await SignInAsync(user, model.RememberMe);
  
              if (User.IsInRole("Admin")) {
                  return RedirectToAction("Index", "AdminMenu");
              }
              if (User.IsInRole("User")) {
                  return RedirectToAction("Index", "UserMenu");
              }
          } else {
              ModelState.AddModelError("", "Invalid username or password.");
          }
      }
      // If we got this far, something failed, redisplay form
      return View(model);
      //return RedirectToAction("About", "Home");
  }
  </code></pre>