public List <SpeakerInfoLite> GetSpeakersForCollection(int sessionId, int codeCampId) { var speakerList = sessionSpeakerRepo.GetItems(sessionId).Select(s => s.SpeakerId); var speakers = repo.GetItems(codeCampId).Where(s => speakerList.Contains(s.SpeakerId)).ToList(); return(speakers.Select(speaker => new SpeakerInfoLite(speaker)).ToList()); }
public IEnumerable <SessionSpeakerInfo> GetItems(int sessionId) { var items = repo.GetItems(sessionId); return(items); }