Пример #1
0
        public JsonResult DeleteIncident(int Id)
        {
            int result;

            result = _hseInjuredSafetyIncidentService.DeleteData(Id);

            if (result > 0)
            {
                return(Json(new { results = new { Data = 200 } }, JsonRequestBehavior.AllowGet));//成功
            }
            else
            {
                return(Json(new { results = new { Data = 100 } }, JsonRequestBehavior.AllowGet));//失败
            }
        }