Exemple #1
0
        public JsonResult AddWish(PurchaseHomeTotalInfo purchaseHomeTotalInfo)
        {
            Session.Remove("ReturnToWishList");
            string mem_phone = Session["mem_phone"].ToString();
            int    goods_id  = purchaseHomeTotalInfo.wish_goods_id;

            ShopBusinessLogic.MemberPurchase memberPurchase = new ShopBusinessLogic.MemberPurchase();
            if (memberPurchase.addWishList(mem_phone, goods_id))
            {
            }
            else
            {
                memberPurchase.deleteWishList(mem_phone, goods_id);
            }
            /*memberPurchase.addWishList(mem_phone, goods_id);*/
            return(Json("心愿单更新成功"));
        }