var httpClient = new HttpClient();
var response = await httpClient.GetAsync("URL");
if (response.StatusCode == HttpStatusCode.OK){
var result = response.Content.ReadAsStringAsync().Result;
if (result == "[]")
{
await DisplayAlert("Invalid", "invalid", "Try Again");
}
else
{
var name = JsonConvert.DeserializeObject<List<DemoClass>>(result);
}
}