public void UpdateUser(UserFM userFM) { UserDAO dao = new UserDAO(); User user = dao.GetUserByID(userFM.ID); user.Email = userFM.Email; dao.UpdateUser(user); }
public void UpdatePassword(PasswordFM passwordFM) { UserDAO dao = new UserDAO(); User user = dao.GetUserByID(passwordFM.ID); user.Password = passwordFM.NewPassword; dao.UpdateUser(user); }