List <Dividend> GetDividendsFromResponse(HttpResponseMessage response) { Dictionary <string, Dividend> div = Dividend.FromJson(response.Content.ReadAsStringAsync().Result); return(div.Values.ToList()); }
List <Dividend> GetDividendsFromResponse(HttpResponseMessage response) { return(Dividend.FromJson(response.Content.ReadAsStringAsync().Result)); }
private async Task <List <Dividend> > GetDividendsFromResponseAsync(HttpResponseMessage response) { return(Dividend.FromJson(await response.Content.ReadAsStringAsync())); }