예제 #1
0
        protected virtual PriceModel GetPriceModel(VariationContent currentContent)
        {
            PriceModel priceModel = new PriceModel();

            priceModel.Price = GetPrice(currentContent);
            priceModel.DiscountDisplayPrice     = currentContent.GetDiscountDisplayPrice(currentContent.GetDefaultPrice());
            priceModel.CustomerClubDisplayPrice = currentContent.GetCustomerClubDisplayPrice();
            return(priceModel);
        }
예제 #2
0
        public static PriceModel GetPriceModel(this VariationContent currentContent)
        {
            PriceModel priceModel = new PriceModel();

            priceModel.Price = GetPrice(currentContent);
            priceModel.DiscountDisplayPrice     = currentContent.GetDiscountDisplayPrice(currentContent.GetDefaultPrice());
            priceModel.CustomerClubDisplayPrice = currentContent.GetCustomerClubDisplayPrice();
            return(priceModel);
        }
예제 #3
0
 public static string GetCustomerClubDisplayPrice(this List <VariationContent> variations, IMarket market = null)
 {
     if (variations.Any())
     {
         VariationContent variationContent = variations.FirstOrDefault(x => x.GetPricesWithMarket(market) != null);
         return(variationContent.GetCustomerClubDisplayPrice(market));
     }
     return(string.Empty);
 }