//Haalt alle specials voor een bepaalde dag op public IEnumerable <SpecialOverviewPresentationModel> GetAllSpecialsForDay(DateTime day) { //Haal alle specials op voor een bepaalde dag IEnumerable <Special> specials = specialRepository.GetAllForDay(day); List <SpecialOverviewPresentationModel> specialPresentations = new List <SpecialOverviewPresentationModel>(); //Zet elke special om in een specialoverviewPresentationModel foreach (Special s in specials) { SpecialOverviewPresentationModel specialPresentation = new SpecialOverviewPresentationModel(s.EventId, (double)s.Event.prijs, s.Event.naam, s.spreker, s.Event.afbeelding_url, s.Event.begin_datumtijd, s.Event.Locatie.naam, s.Event.Locatie.zaal, s.Event.beschrijving); specialPresentations.Add(specialPresentation); } return(specialPresentations.AsEnumerable()); }