public async Task<IHttpActionResult> SetPassword(SetPasswordBindingModel model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } var result = await UserManager.AddPasswordAsync(User.Identity.GetUserId(), model.NewPassword); return !result.Succeeded ? GetErrorResult(result) : Ok(); }