private async Task LoadStandingsAsync() { var result = await _standingService.GetSeasonDriverStandingsCollectionAsync(); Standing = new ObservableCollection <DriverStanding>(); foreach (var standing in result.StandingsLists.First().DriverStandings) { Standing.Add(standing); } }
private async Task LoadDriverStanding() { var driverStandings = await _standingService.GetSeasonDriverStandingsCollectionAsync(); var drivers = driverStandings.StandingsLists.First().DriverStandings; _driverStanding = new ObservableCollection <DriverStanding>(); foreach (var driver in drivers) { _driverStanding.Add(driver); } }
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); } }