public WineSKUViewModel(WineSKUContent currentContent) { CatalogContent = currentContent; Media = GetMedia(currentContent); CartItem = new CartItemModel(CatalogContent) { CanBuyEntry = true }; }
public DigitalCameraVariationViewModel(DigitalCameraVariationContent currentContent) : base(currentContent) { CatalogVariationContent = currentContent; Media = GetMedia(currentContent); CartItem = new CartItemModel(CatalogVariationContent) { CanBuyEntry = true }; }
public WineSKUViewModel(WineSKUContent currentContent) { CatalogContent = currentContent; Media = GetMedia(currentContent); CartItem = new CartItemModel(CatalogContent){CanBuyEntry = true}; if (currentContent["WineRegion"] != null) { CartItem.WineRegion = currentContent["WineRegion"].ToString(); } }
public WineSKUViewModel(WineSKUContent currentContent) { CatalogContent = currentContent; Media = GetMedia(currentContent); CartItem = new CartItemModel(CatalogContent) { CanBuyEntry = true }; if (currentContent["WineRegion"] != null) { CartItem.WineRegion = currentContent["WineRegion"].ToString(); } }