public void Update(PasswordChangeModel passwordChangeModel) { ApplicationUser user = context.Users.Find(passwordChangeModel.Id); userManager.ChangePasswordAsync(user, passwordChangeModel.OldPassword, passwordChangeModel.NewPassword).Wait(); user.UserName = passwordChangeModel.Username; context.Entry(user).State = EntityState.Modified; context.SaveChanges(); }
public void Update(Client entity) { context.Entry(entity).State = EntityState.Modified; context.SaveChanges(); }
public void Update(UserActionLog entity) { context.Entry(entity).State = EntityState.Modified; context.SaveChanges(); }