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