Ejemplo n.º 1
0
 public static void MapPromotionInfo(List <DOMAIN.PromotionInfo> target, SERVICE.PromotionInfo[] source)
 {
     if (source != null)
     {
         foreach (var promotionInfo in source)
         {
             target.Add(ServiceToDomainExtensions.ToDomain(promotionInfo));
         }
     }
 }
Ejemplo n.º 2
0
 public static List <DOMAIN.AttributeType> ToAttributes(this SERVICE.AttributeType[] items)
 {
     if (items != null)
     {
         var results = new List <DOMAIN.AttributeType>();
         foreach (var item in items)
         {
             results.Add(ServiceToDomainExtensions.ToDomain(item));
         }
         return(results);
     }
     return(null);
 }
Ejemplo n.º 3
0
 public static List <DOMAIN.HierarchyLevelInfo> ToHierarchyLevelInfos(this SERVICE.HierarchyLevelInfo[] items)
 {
     if (items != null)
     {
         var results = new List <DOMAIN.HierarchyLevelInfo>();
         foreach (var item in items)
         {
             results.Add(ServiceToDomainExtensions.ToDomain(item));
         }
         return(results);
     }
     return(null);
 }
Ejemplo n.º 4
0
        public static List <DOMAIN.LoyaltyTranslationType> ToLoyaltyTranslationList(this SERVICE.LoyaltyTranslationType[] items)
        {
            if (items == null)
            {
                return(null);
            }
            var results = new List <DOMAIN.LoyaltyTranslationType>();

            foreach (var item in items)
            {
                results.Add(ServiceToDomainExtensions.ToDomain(item));
            }
            return(results);
        }
Ejemplo n.º 5
0
        public static List <DOMAIN.CurrencyInfo> ToCurrencyInfoList(this SERVICE.CurrencyInfo[] items)
        {
            if (items == null)
            {
                return(null);
            }

            var results = new List <DOMAIN.CurrencyInfo>();

            foreach (var item in items)
            {
                results.Add(ServiceToDomainExtensions.ToDomain(item));
            }
            return(results);
        }
Ejemplo n.º 6
0
        public static List <DOMAIN.CountrySubdivisionInfo> ToStateProvinceInfoList(this SERVICE.CountrySubdivisionInfo[] items)
        {
            if (items == null)
            {
                return(null);
            }

            var results = new List <DOMAIN.CountrySubdivisionInfo>();

            foreach (var item in items)
            {
                results.Add(ServiceToDomainExtensions.ToDomain(item));
            }
            return(results);
        }
Ejemplo n.º 7
0
        public static DOMAIN.KeyValuePairType[] ToKeyValuePairs(this List <SERVICE.KeyValuePairType> items)
        {
            var result = new List <DOMAIN.KeyValuePairType>();

            if (items == null)
            {
                return(result.ToArray());
            }

            foreach (var item in items)
            {
                var toAdd = ServiceToDomainExtensions.ToDomain(item);
                if (toAdd == null)
                {
                    continue;
                }
                result.Add(toAdd);
            }
            return(result.ToArray());
        }