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();
        }
Ejemplo n.º 2
0
 public void Update(Client entity)
 {
     context.Entry(entity).State = EntityState.Modified;
     context.SaveChanges();
 }
Ejemplo n.º 3
0
 public void Update(UserActionLog entity)
 {
     context.Entry(entity).State = EntityState.Modified;
     context.SaveChanges();
 }