title: Updating user data - ASP.NET Identity
body: <p>I've added custom fields to the <code>ApplicationUser</code> class<br>
  I've also created a form through which the user can enter/edit the fields.<br>
  However for some reason I'm not able to update the fields in the database.</p>
  
  <pre><code>[HttpPost]
  [ActionName("Edit")]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; Manage(EditProfileViewModel model)
  {
      if (ModelState.IsValid)
      {
          // Get the current application user
          var user = User.Identity.GetApplicationUser();
  
          // Update the details
          user.Name = new Name { First = model.FirstName, Last = model.LastName, Nickname = model.NickName };
          user.Birthday = model.Birthdate;
  
          // This is the part that doesn't work
          var result = await UserManager.UpdateAsync(user);
  
          // However, it always succeeds inspite of not updating the database
          if (!result.Succeeded)
          {
              AddErrors(result);
          }
      }
  
      return RedirectToAction("Manage");
  }
  </code></pre>
  
  <p>My problem is similar to <a href="https://stackoverflow.com/questions/19348966/mvc5-applicationuser-custom-properties">MVC5 ApplicationUser custom properties</a>, but that seems to use an older version of Identity because the IdentityManager class doesn't seem to exist.</p>
  
  <p><strong>Can someone guide me on how to update <code>User</code> info in the database?</strong></p>
  
  <p>UPDATE:
  If I include all the fields in the register form, all the values are stored in the appropriate field in a new record of the <code>Users</code> table from the database.</p>
  
  <p>I don't know to make changes to the fields of an existing user (row in the <code>users</code> table). <code>UserManager.UpdateAsync(user)</code> doesn't work.</p>
  
  <p><em>Also note my issue is more Identity oriented than EntityFramework</em></p>