public void Delete(BllUser bllUser) { userRepository.Delete(bllUser.ToDalUser()); uow.Commit(); }
public BllUser Update(BllUser bllUser) { DalUser oldUser = userRepository.Update(bllUser.ToDalUser()); uow.Commit(); return oldUser == null ? null : oldUser.ToBll(); }
public BllUser Create(BllUser bllUser) { BllUser newUser = userRepository.Create(bllUser.ToDalUser()).ToBll(); uow.Commit(); return newUser; }