Esempio n. 1
0
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(Json(
                           new OperateResult
                {
                    content = "访问错误",
                },
                           JsonRequestBehavior.AllowGet
                           ));
            }

            OperateResult or = PerformanceManager.Remove(id.Value);

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