public User DeactivateUser(User userToDeactivate) { userToDeactivate.Status = Constants.USERSTATUS_PASSIVE; UserDataAccessManager userDataAccess = new UserDataAccessManager(); return(userDataAccess.Update(userToDeactivate)); }
public User DeleteUser(User userToDelete) { userToDelete.Status = Constants.USERSTATUS_DELETED; UserDataAccessManager userDataAccess = new UserDataAccessManager(); return(userDataAccess.Update(userToDelete)); }
public User UpdateUser(User userToUpdate) { UserDataAccessManager userDataAccess = new UserDataAccessManager(); return(userDataAccess.Update(userToUpdate)); }