public async Task <List <Beer> > GetBeers(string Url) { HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(Url); response.EnsureSuccessStatusCode(); var responseBody = await response.Content.ReadAsAsync <JArray>(); List <Beer> result = Beer.FromJson(responseBody.ToString()); return(result); }