public ActionResult DocLogs_remove(int id) { var res = false; var mng = new DocsManager(); var item = mng.GetDocLog(id); if (item != null) { mng.DeleteDocLogs(item.id); res = true; } return(Json(new { result = res, msg = "Лог удалён!" })); }
public ActionResult DocLogs_remove(int id) { var res = false; var mng = new DocsManager(); var item = mng.GetDocLog(id); if (item != null) { mng.DeleteDocLogs(item.id); res = true; } return(Json(new { result = res, msg = "Лог удалён!" })); }