public bool IsValidLocation(string location) { if (!CensusLocation.IsKnownCountry) { return(true); } else if (Countries.IsUnitedKingdom(location)) { return(CensusLocation.IsUnitedKingdom); } else { return(CensusLocation.Country.Equals(location)); } }
public bool IsValidLocation(string location) => !CensusLocation.IsKnownCountry || Countries.IsUnitedKingdom(location) ? CensusLocation.IsUnitedKingdom : CensusLocation.Country.Equals(location);
public bool IsOverseasUKCensus(string country) { return(country.Equals(Countries.OVERSEAS_UK) || (!Countries.IsUnitedKingdom(country) && CensusReference != null && CensusReference.IsUKCensus)); }