Пример #1
0
        public ActionResult CancelAllUserOrders()
        {
            ShopModel sm = new ShopModel();

            try
            {
                bool result = sm.CancelAllAvailableOrder();
            }
            catch(Exception ex)
            {
                return Json(new { status = 0, msg = "取消订单失败." + ex.Message }, JsonRequestBehavior.AllowGet);
            }

            return Json(new { status = 1, msg = "取消订单成功" }, JsonRequestBehavior.AllowGet);
        }