internal static short GetYakeenCountryCode(string twoLetterCountryCode) { if (CountryMap.ContainsKey(twoLetterCountryCode)) { return(CountryMap[twoLetterCountryCode]); } return(1); }
private void TryFillCountry(ExchangeAddressDetail detail, AddressDetail addressDetail) { if (string.IsNullOrEmpty(detail.CountryName) || addressDetail.CountryId != Guid.Empty) { return; } if (CountryMap.ContainsKey(detail.CountryName)) { addressDetail.CountryId = CountryMap[detail.CountryName]; } }