Ejemplo n.º 1
0
        public void PostDelete(int videoID)
        {
            int    _code    = 0;
            string _message = "删除视频信息失败";

            _code = _videoService.DeleteVideoByID(videoID);

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

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

            CancelLayout();
        }