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