示例#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();
 }