public UserDTO(User userToConvertToDTO) { this.UserId = userToConvertToDTO.UserId; this.Username = userToConvertToDTO.Username; this.Name = userToConvertToDTO.Name; this.Email = userToConvertToDTO.EMail; this.IsAdmin = userToConvertToDTO.IsAdmin; this.Active = userToConvertToDTO.Active; }
public void UpdateUser(User userToUpdate) { uow.UserRepository.Update(userToUpdate); uow.Commit(); }
public void CreateUser(User userToAdd) { uow.UserRepository.Insert(userToAdd); uow.Commit(); }