var responseBooked = await client.GetAsync("url"); //will always throw an exception if not successful responseBooked.EnsureSuccessStatusCode(); if (responseBooked.Content != null) { var responseContent = await responseBooked.Content.ReadAsStringAsync(); mBcomplist = Newtonsoft.Json.JsonConvert.DeserializeObject<List<busCompList>> (responseContent); //Create our layout manager<pre lang="c#">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)