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); }
public EventSubType GetById(Guid subTypeId) { return(eventSubTypeRepository.GetById(subTypeId)); }