public IEnumerable <string> GetRegionalBlocsNames() { if (RegionalBlocs == null) { return(new List <string>()); } return(RegionalBlocs.Select(c => c.Name)); }
public bool IsInCommonMarket(Country country) { CountryDescription countryDescription = GetCountryDescriptionViaRestCall(country); if (countryDescription == null) { return(false); } IList <RegionalBlocs> regionalBlocs = countryDescription.regionalBlocs; if (regionalBlocs.Count == 0) { return(false); } RegionalBlocs bloc = regionalBlocs[0]; return(bloc.acronym != null && bloc.acronym.Equals("EU")); }