public void Update(LotDto lot) { var orm = _lotRepository.GetById(lot.LotId); orm = lot.ToDal(orm); _lotRepository.Update(orm); }
public LotDto AddItem(LotDto lot) { return(_lotRepository.Create(lot.ToDal()).ToDto()); }