Beispiel #1
0
        public JsonResult AddToOrderDetail(string OrderID, int GoodsID, int GoodsNumber)
        {
            bool res = BuyerManger.AddToOrderDetail(OrderID, GoodsID, GoodsNumber);

            return(Json("{\"status\":true}"));
        }
Beispiel #2
0
        public JsonResult AddToOrder(int UserID, int ShopID, int OrderID, double Price, string OrderState)
        {
            bool res = BuyerManger.AddToOrder(UserID, ShopID, OrderID, Price, OrderState);

            return(Json("{\"status\":true}"));
        }
Beispiel #3
0
        /// <summary>
        /// 添加收藏
        /// </summary>
        /// <param name="UserID"></param>
        /// <param name="CollectID"></param>
        /// <param name="Type"></param>
        /// <returns></returns>
        public JsonResult AddToCollect(int UserID, int CollectID, string Type)
        {
            bool res = BuyerManger.AddToCollect(UserID, CollectID, Type);

            return(Json("{\"status\":true}"));
        }
Beispiel #4
0
        /// <summary>
        /// 删除购物车货物
        /// </summary>
        /// <param name="CartID"></param>
        /// <returns></returns>
        public JsonResult DeleteCartGoods(int CartID)
        {
            bool res = BuyerManger.DeleteCartGoods(CartID);

            return(Json("{\"status\":true}"));
        }
Beispiel #5
0
        /// <summary>
        /// 获取购物车商品
        /// </summary>
        /// <param name="UserID"></param>
        /// <returns></returns>
        public JsonResult GetCartGoods(int UserID)
        {
            List <CartDetail> lstCart = BuyerManger.GetCartGoods(UserID);

            return(Json(lstCart));
        }
Beispiel #6
0
        /// <summary>
        /// 获取购物车商品数量
        /// </summary>
        /// <param name="UserID"></param>
        /// <returns></returns>
        public JsonResult GetCartGoodsNum(int UserID)
        {
            int num = BuyerManger.GetCartGoodsNum(UserID);

            return(Json(num));
        }
Beispiel #7
0
        /// <summary>
        /// 添加商品至购物车
        /// </summary>
        /// <param name="GoodsID"></param>
        /// <param name="ShopID"></param>
        /// <param name="GoodsNum"></param>
        /// <param name="UserID"></param>
        /// <returns></returns>
        public JsonResult AddToCart(int GoodsID, int ShopID, int GoodsNum, int UserID)
        {
            bool res = BuyerManger.AddToCart(GoodsID, ShopID, GoodsNum, UserID);

            return(Json("{\"status\":true}"));
        }
Beispiel #8
0
        /// <summary>
        /// 获取评价
        /// </summary>
        /// <param name="GoodsID"></param>
        /// <returns></returns>
        public JsonResult getEvaluate(int GoodsID)
        {
            List <Evaluate> lstEvaluate = BuyerManger.GetEvaluate(GoodsID);

            return(Json(lstEvaluate));
        }
Beispiel #9
0
        /// <summary>
        /// 获取商品详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public JsonResult getGoods(int GoodsID)
        {
            List <IntroductionDetail> lstGoods = BuyerManger.GetGoodsByID(GoodsID);

            return(Json(lstGoods));
        }