private async Task LoadConstructorStanding() { var constructorStandings = await _standingService.GetSeasonConstructorStandingsCollectionAsync(); var constructors = constructorStandings.StandingsLists.First().ConstructorStandings; _constructorStanding = new ObservableCollection <ConstructorStanding>(); foreach (var constructor in constructors) { _constructorStanding.Add(constructor); } }
private async Task LoadStandingsData() { var driverStandings = await _standingService.GetSeasonDriverStandingsCollectionAsync(); var drivers = driverStandings.StandingsLists.First().DriverStandings; foreach (var driver in drivers) { DriverStanding.Add(driver); } var constructorStandings = await _standingService.GetSeasonConstructorStandingsCollectionAsync(); var constructors = constructorStandings.StandingsLists.First().ConstructorStandings; foreach (var constructor in constructors) { ConstructorStanding.Add(constructor); } }