예제 #1
0
        public bool IsBaoQuan()
        {
            if (this.ShopOrderProducts != null)
            {
                ShopProduct first = this.ShopOrderProducts.Select(q => q.ShopProduct).FirstOrDefault();
                if (first != null && first.IsBaoKuan())
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
 /// <summary>
 /// 获取用户的价格
 /// </summary>
 /// <param name="product"></param>
 /// <returns></returns>
 public decimal GetProductPrice(ShopProduct product)
 {
     //if (IsVip())
     //    return product.PriceVip;
     return(product.PriceShopping);
 }