public ActionResult DocStatuses_remove(int id) { var res = false; var mng = new DocsManager(); var item = mng.GetDocStatus(id); if (item != null) { mng.DeleteDocStatus(id); res = true; } return(Json(new { result = res, msg = "Статус удален!" })); }