Пример #1
0
        public void PostDelete(int catalogID)
        {
            int    _code    = 0;
            string _message = "删除分类失败";

            _code = _catalogService.DeleteCatalogByID(catalogID);

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

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

            CancelLayout();
        }