Beispiel #1
0
        public List <Event> GetAllEvents()
        {
            List <Event> events = eventRepository.GetAll();

            foreach (Event iEvent in events)
            {
                iEvent.Artist   = artistsRepository.GetById(iEvent.ArtistId);
                iEvent.Location = locationRepository.GetById(iEvent.LocationId);
                iEvent.SubType  = eventSubTypeRepository.GetById(iEvent.SubTypeId);
                iEvent.Type     = eventTypeRepository.GetById(iEvent.TypeId);
            }

            return(events);
        }