public ActionResult DocVersions_remove(int id) { var res = false; var mng = new DocsManager(); var item = mng.GetDocVersion(id); if (item != null) { mng.DeleteDocVersions(item.id); res = true; } return(Json(new { result = res, msg = "Версия удалена!" })); }