public void CreateLot(LotEntity entity) { try { var dalLot = entity.ToDalLot(); _lotRepository.Create(dalLot); _unitOfWork.Commit(); } catch (Exception exception) { Log.LogError(exception); } }
public LotDto AddItem(LotDto lot) { return(_lotRepository.Create(lot.ToDal()).ToDto()); }
public void CreateLot(LotEntity lot) { _lotRepository.Create(lot.ToDalLot()); _uow.Commit(); }