public static List<Record> GetRecordsFromPath(string dataPath, TimePeriod period) { var res = new List<Record>(); var sessions = GetSessionsFromPath(dataPath, period); foreach (var session in sessions) { var tmp = GetRecordsFromSession(session, period); res.AddRange(tmp); } return res; }