public void Add(IUser user) { if (user != null) { bool accountDoesntExist = _accountManager.CheckIfAccountExists(user); if (accountDoesntExist) { _dto = DtoConverter.ConvertToUserDto(user); DalFactory.UserRepo.Create(_dto); } } }
public void Edit(IUser user) { DalFactory.UserRepo.Edit(DtoConverter.ConvertToUserDto(user)); }