List <HistoricalPrice> GetHistoricalPricesFromResponse(HttpResponseMessage response) { return(HistoricalPrice.GetListFromJson(response.Content.ReadAsStringAsync().Result) ?? new List <HistoricalPrice>()); }
private async Task <List <HistoricalPrice> > GetHistoricalPricesFromResponseAsync(HttpResponseMessage response) { return(HistoricalPrice.GetListFromJson(await response.Content.ReadAsStringAsync()) ?? new List <HistoricalPrice>()); }