示例#1
0
        public JsonResult Delete(int id)
        {
            var _repo  = new ScriptsManager();
            var script = _repo.GetById(id);

            if (script.Id > 0)
            {
                _repo.Delete(script.Id);
                return(Json(true));
            }
            else
            {
                return(Json(false));
            }
        }