예제 #1
0
 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;
 }
예제 #2
0
 public void UpdateUser(User userToUpdate)
 {
     uow.UserRepository.Update(userToUpdate);
     uow.Commit();
 }
예제 #3
0
 public void CreateUser(User userToAdd)
 {
     uow.UserRepository.Insert(userToAdd);
     uow.Commit();
 }