public async Task <Countries> GetCountryAsync() { Countries result = Countries.UN; GeoData data = await GetGeoData(); if (data != null) { bool success = Enum.TryParse(data.CountryCode, out Countries parseResult); if (success) { result = parseResult; } } return(result); }