public static List <CurrentMatch> GetMatches(IEnumerable <Match> MatchesDb) { return(MatchesDb.Select(m => new CurrentMatch() { Id = m.MatchId, Day = m.Day, Type = m.Type, Year = m.Year, Results = CurrentMatch.ResultsHelper(m) }) .ToList()); }