Example #1
0
 internal static short GetYakeenCountryCode(string twoLetterCountryCode)
 {
     if (CountryMap.ContainsKey(twoLetterCountryCode))
     {
         return(CountryMap[twoLetterCountryCode]);
     }
     return(1);
 }
Example #2
0
 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];
     }
 }