Ejemplo n.º 1
0
        public ActionResult delectMarketMSG(VBuyShop model)
        {
            int Id = model.shopID;

            var result  = TAllmoneyBll.Add_buyshop(Id);   //对购买商品进行 善款筹集添加
            var result2 = TAllmoneyBll.delet_buyshop(Id); //对购买商品进行 义卖物品总价值删减
            var result3 = TAllmoneyBll.all_buyshop();     //对购买商品进行 总慈善价值累计

            var delectResult = _bendshopBll.Shop_Delected(Id);

            return(RedirectToAction("MarketIndex", "Market"));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 付钱购买页面
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public ActionResult BuyMarketShop(int Id = 0, int sd = 0)
        {
            if (sd == 0)
            {
                return(RedirectToAction("LoginIndex", "LoginSignUp"));
            }
            else
            {
                VBuyShop vbuyshopModel = new VBuyShop();

                BendAccountBll _bendaccountBll = new BendAccountBll();
                var            accout          = _bendaccountBll.Query_Account(sd);
                var            shop            = _bendshopBll.Query_Shop(Id);

                vbuyshopModel.shopID    = shop.ID;
                vbuyshopModel.UsName    = accout.UsName;
                vbuyshopModel.UsNiname  = accout.UsNiname;
                vbuyshopModel.ShopName  = shop.ShopName;
                vbuyshopModel.ShopValue = shop.ShopValue;

                ViewData.Model = vbuyshopModel;
                return(View(ViewData.Model));
            }
        }