/// <summary> /// Gets constructor standings for all seasons. /// </summary> /// <returns>Constructor Standings info.</returns> public async Task <StandingsTable> ConstructorStandingsBySeason() { try { HttpResponseMessage response = await _client.GetAsync(_api.ChampionsByYearConstrcutor()); if (response.IsSuccessStatusCode) { string content = await response.Content.ReadAsStringAsync(); var aux = JsonConvert.DeserializeObject <DataErgastStandings>(DataErgast.RemoveMRData(content)); if (aux != null) { return(aux.StandingsTable); } } } catch (Exception ex) { Debug.WriteLine("\tERROR {0}", ex.Message); } return(null); }