public static Attachment ToShopifyModel(this VirtoCommerce.Storefront.Model.Attachment storefrontModel)
        {
            var shopifyModel = new Attachment();

            shopifyModel.InjectFrom <NullableAndEnumValueInjecter>(storefrontModel);

            return(shopifyModel);
        }
        public virtual Attachment ToLiquidAttachment(VirtoCommerce.Storefront.Model.Attachment attachment)
        {
            var retVal = new Attachment();

            retVal.InjectFrom <NullableAndEnumValueInjecter>(attachment);

            return(retVal);
        }
        public virtual Attachment ToLiquidAttachment(VirtoCommerce.Storefront.Model.Attachment attachment)
        {
            var factory = ServiceLocator.Current.GetInstance <ShopifyModelFactory>();
            var retVal  = factory.CreateAttachment();

            retVal.InjectFrom <NullableAndEnumValueInjecter>(attachment);

            return(retVal);
        }
        public virtual Attachment ToLiquidAttachment(VirtoCommerce.Storefront.Model.Attachment attachment)
        {
            var retVal = new Attachment();

            retVal.CreatedBy    = attachment.CreatedBy;
            retVal.CreatedDate  = attachment.CreatedDate;
            retVal.MimeType     = attachment.MimeType;
            retVal.ModifiedBy   = attachment.ModifiedBy;
            retVal.ModifiedDate = attachment.ModifiedDate;
            retVal.Name         = attachment.Name;
            retVal.Size         = attachment.Size;
            retVal.Url          = attachment.Url;

            return(retVal);
        }
        public static Attachment ToShopifyModel(this VirtoCommerce.Storefront.Model.Attachment attachment)
        {
            var converter = new ShopifyModelConverter();

            return(converter.ToLiquidAttachment(attachment));
        }
        public static Attachment ToShopifyModel(this VirtoCommerce.Storefront.Model.Attachment attachment)
        {
            var converter = ServiceLocator.Current.GetInstance <ShopifyModelConverter>();

            return(converter.ToLiquidAttachment(attachment));
        }