public IActionResult Index() { ViewData["AlleCategorien"] = _categorieRepository.GetAll().ToList(); return(View(new IndexViewModel(_bonRepository.GetTop30(_bonRepository.GetAllGoedgekeurd().ToList()).ToList(), _bonRepository.GetBonnenAanbiedingSlider(_bonRepository.GetAllGoedgekeurd().ToList()).ToList(), _categorieRepository.GetTop9WithAmount()))); }
public IActionResult LayoutSliderIndex() { return(View(new CadeaubonOverzichtViewModel(_bonRepository.GetBonnenAanbiedingSlider(_bonRepository.GetAllGoedgekeurd())))); }