public static async Task <CityNameModel> LoadCityNameResults() { using (HttpResponseMessage response = await ApiHelper.ApiClient.GetAsync(CityUrl)) { if (response.IsSuccessStatusCode) { CityNameModel result = await response.Content.ReadAsAsync <CityNameModel>(); return(result); } throw new Exception(response.ReasonPhrase); } }