public IEnumerable <NobelPrize> GetPrizesForCategory(NobelPrizeCategory category) { return(prizes.Where(p => p.Category == category)); }
public NobelPrize GetPrize(string year, NobelPrizeCategory category) { return(prizes.First(p => p.Year == year && p.Category == category)); }
public IEnumerable <NobelPrizeLaureate> GetLaureatesForPrize(string year, NobelPrizeCategory category) { var laureatesForPrize = GetPrize(year, category).Laureates; return(laureates.Where(l => laureatesForPrize.Contains(l.Id))); }