示例#1
0
        /// <summary>
        /// 返回购物车列表
        /// </summary>
        /// <returns>IList</returns>
        public List <Model.cart_items> get_cart_list()
        {
            int group_id = 0;

            Model.users userModel = GetUserInfo();
            if (userModel != null)
            {
                group_id = userModel.group_id;
            }
            List <Model.cart_items> ls = ShopCartController.GetList(group_id);

            if (ls == null)
            {
                ls = new List <Model.cart_items>();
            }
            return(ls);
        }
示例#2
0
 /// <summary>
 /// 返回购物车商品总数
 /// </summary>
 /// <returns>Int</returns>
 public int get_cart_quantity()
 {
     return(ShopCartController.GetQuantityCount());
 }