Example #1
0
        public ActionResult Dele(GonhuoShang d, int id)
        {
            d.Gid = id;
            var a = new GonhuoService();
            var s = a.Dele(d);

            return(RedirectToAction("Query"));
        }
Example #2
0
        public ActionResult DeleAjax(GonhuoShang d)
        {
            var a      = new GonhuoService();
            var s      = a.Dele(d);
            var result = new
            {
                ActionResult = s,
                Msg          = s ? "删除成功" : "删除失败"
            };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }