Exemple #1
0
        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);
            }
        }
 public async Task <ActionResult <DriverStanding> > Put(int id, [FromBody] DriverStanding value)
 {
     return(await this.baseController.Put(id, value));
 }