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); } }
public void CloseLot(LotEntity lot) { _lotRepository.CloseLot(lot.ToDalLot()); _uow.Commit(); }
public void UpdateLot(LotEntity lot) { _lotRepository.Update(lot.ToDalLot()); _uow.Commit(); }