diff --git a/Models/Country.cs b/Models/Country.cs index 82d520e..0031baf 100644 --- a/Models/Country.cs +++ b/Models/Country.cs @@ -1017,7 +1017,7 @@ namespace NejCommon.Models public static CultureInfo GetCultureInfo(this Country country) => new CultureInfo(country.GetCountryCode()); public static string GetDisplayName(this Country country) => CountryProvider.GetCountry(country.GetCountryCode()).NativeName; - public static bool IsEEA(this Country country) => country switch + public static bool IsEU(this Country country) => country switch { Country.AT => true, Country.BE => true, @@ -1047,12 +1047,16 @@ namespace NejCommon.Models Country.ES => true, Country.SE => true, + _ => false + }; + public static bool IsEEA(this Country country) => IsEEA(country) || (country switch + { //extras Country.LI => true, Country.IS => true, Country.NO => true, _ => false - }; + }); public static bool IsSEPA(this Country country) => IsEEA(country) || (country switch{ Country.CH => true,