示例#1
0
        public static Product From(Shopify.Product source)
        {
            var dest = new Product {
                ShopifyId = source.Id
            };

            dest.Merge(source);

            return(dest);
        }
示例#2
0
 /// <summary>
 ///     Merge fields from source into this.
 /// </summary>
 /// <param name="source"></param>
 public void Merge(Shopify.Product source)
 {
     Title       = source.Title;
     Description = source.BodyHtml;
     Tags        = source.Tags;
 }