Ejemplo n.º 1
0
        public void PostDelete(int gradeID)
        {
            int    _code    = 0;
            string _message = "删除年级失败";

            _code = _gradeService.DeleteGradeByID(gradeID);

            if (_code > 0)
            {
                _message = "删除年级成功";
            }
            else
            {
                _message = "对不起,修改失败!";
            }

            RenderText("{\"code\":\"" + _code + "\",\"message\":\"" + _message + "\"}");

            CancelLayout();
        }