public void TurnOnUser(long userAccountId) { UserAccount userAccount = UserInformationDao.GetUserAccountById(userAccountId); userAccount.AccountStatus = UserAccount.Status.ACTIVE; AccountAdministrationDao.SaveOrUpdateUser(userAccount); }
public void LockUser(long userAccountId) { UserAccount userAccount = UserInformationDao.GetUserAccountById(userAccountId); userAccount.AccountStatus = UserAccount.Status.LOCKED_OUT; AccountAdministrationDao.SaveOrUpdateUser(userAccount); }
public void RemoveUser(long userAccountId) { UserAccount userAccount = UserInformationDao.GetUserAccountById(userAccountId); userAccount.ValidTo = DateTime.Now; userAccount.AccountStatus = UserAccount.Status.REMOVED; AccountAdministrationDao.SaveOrUpdateUser(userAccount); }