private void UpdateResultsName(ChampionshipDto championship) { var driverDictionary = championship.GetGuidToDriverDictionary(); foreach (var driverResult in championship.GetAllResults().SelectMany(x => x.DriverSessionResult)) { driverResult.DriverName = driverDictionary[driverResult.DriverGuid].LastUsedName; } }
public DriverSessionResultComparer(ChampionshipDto championshipDto) { _results = championshipDto.GetAllResults().SelectMany(x => x.DriverSessionResult).ToList(); }