public void BuildIndexes() { IEnumerable <Car> models = CarRepository.GetAll(); IEnumerable <Document> documents = CarConverter.ConvertModelsToDocuments(models); WriteIndex(documents); }
public CarDataWrapper(EntityDbContext dbContext, CarConverter converter) { _dbContext = dbContext; _converter = converter; }