public void DeleteLot(LotEntity entity)
 {
     try
     {
         _lotRepository.Delete(entity.ToDalLot());
         _unitOfWork.Commit();
     }
     catch (Exception exception)
     {
         Log.LogError(exception);
     }
 }
 public void CreateLot(LotEntity entity)
 {
     try
     {
         var dalLot = entity.ToDalLot();
         _lotRepository.Create(dalLot);
         _unitOfWork.Commit();
     }
     catch (Exception exception)
     {
         Log.LogError(exception);
     }
 }
Example #3
0
 public void Delete(LotEntity lot)
 {
     lotRepository.Delete(lot.ToDalLot());
     uow.Commit();
 }
Example #4
0
 public void Update(LotEntity lot)
 {
     lotRepository.Update(lot.ToDalLot());
     uow.Commit();
 }
 public void CloseLot(LotEntity lot)
 {
     _lotRepository.CloseLot(lot.ToDalLot());
     _uow.Commit();
 }
Example #6
0
 public void CreateLot(LotEntity lot)
 {
     lotRepository.Create(lot.ToDalLot());
     uow.Commit();
 }