コード例 #1
0
        internal static product MapImage(product product, image image)
        {
            if (image == null)
            {
                return(product);
            }

            if (product.associations.images == null)
            {
                product.associations.images = new List <Bukimedia.PrestaSharp.Entities.AuxEntities.image>();
            }

            product.associations.images.Add(new Bukimedia.PrestaSharp.Entities.AuxEntities.image {
                id = image.id
            });
            return(product);
        }
コード例 #2
0
        internal static product MapImage(product product, image image)
        {
            if (image == null)
            {
                return product;
            }

            if (product.associations.images == null)
            {
                product.associations.images = new List<Bukimedia.PrestaSharp.Entities.AuxEntities.image>();
            }

            product.associations.images.Add(new Bukimedia.PrestaSharp.Entities.AuxEntities.image { id = image.id } );
            return product;
        }