예제 #1
0
 public void Delete(BllLot bllLot)
 {
     //Проверка на существование?
     IEnumerable<BllBid> bids = bidService.GetByPredicate(b => b.LotId == bllLot.Id).ToList();
     foreach (var bid in bids)
     {
         bidService.Delete(bid);
     }
     lotRepository.Delete(bllLot.ToDalLot());
     uow.Commit();
 }
예제 #2
0
 public BllLot Update(BllLot bllLot)
 {
     DalLot oldLot = lotRepository.Update(bllLot.ToDalLot());
     uow.Commit();
     return oldLot == null ? null : oldLot.ToBll();
 }
예제 #3
0
 public BllLot Create(BllLot bllLot)
 {
     BllLot newLot = lotRepository.Create(bllLot.ToDalLot()).ToBll();
     uow.Commit();
     return newLot;
 }