public virtual Image ToLiquidImage(storefrontModel.Image image) { var result = new Image(); result.Alt = image.Alt; result.Name = image.Title; result.Src = image.Url; return(result); }
public static Image ToShopifyModel(this StorefrontModel.Image image) { var shopifyModel = new Image(); shopifyModel.InjectFrom <StorefrontModel.Common.NullableAndEnumValueInjecter>(image); shopifyModel.Name = image.Title; shopifyModel.Src = image.Url; return(shopifyModel); }
public virtual Image ToLiquidImage(storefrontModel.Image image) { var result = new Image(); result.InjectFrom <NullableAndEnumValueInjecter>(image); result.Name = image.Title; result.Src = image.Url; return(result); }
public virtual Image ToLiquidImage(storefrontModel.Image image) { var factory = ServiceLocator.Current.GetInstance <ShopifyModelFactory>(); var result = factory.CreateImage(); result.InjectFrom <NullableAndEnumValueInjecter>(image); result.Name = image.Title; result.Src = image.Url; return(result); }
public static Image ToShopifyModel(this storefrontModel.Image image) { var converter = new ShopifyModelConverter(); return(converter.ToLiquidImage(image)); }
public static Image ToShopifyModel(this storefrontModel.Image image) { var converter = ServiceLocator.Current.GetInstance <ShopifyModelConverter>(); return(converter.ToLiquidImage(image)); }