public IEnumerable <RacesScoreByRace> GetRacesScoreByRace(int raceId) { List <RacesScoreByRace> rs = new List <RacesScoreByRace>(); db.GetRacesScoreByRace(raceId).Values.ToList().ForEach(racescore => rs.Add(new RacesScoreByRace(racescore))); return(rs.OrderByDescending(o => o.pos).ToList()); }