public void changePrice() { List <ILot> lotsToChange = _lotRepository.GetAllLots(); int randomLot = getRandomLotNumber(lotsToChange); lotsToChange[randomLot].changePrice(lotsToChange[randomLot].Price * 0.1F); }
public IEnumerable <LotDto> GetAllLots(LotsFilterCriteria criteria) { if (criteria.Category == 0) // Skip default; { criteria.Category = null; } return(_lotRepository.GetAllLots(criteria).ToDto()); }