Esempio n. 1
0
        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())));
        }
Esempio n. 2
0
 public IActionResult LayoutSliderIndex()
 {
     return(View(new CadeaubonOverzichtViewModel(_bonRepository.GetBonnenAanbiedingSlider(_bonRepository.GetAllGoedgekeurd()))));
 }