Example #1
0
        public ActionResult GetArticleTable_remove(int id)
        {
            var res  = false;
            var art  = new ArticleManager();
            var item = art.GetItem(id);
            var msg  = "";

            if (item != null)
            {
                art.DeleteItem(id);
                ArticleImageDelete(id);
                msg = "Запись успешно удалена!";
                res = true;
            }

            return(Json(new
            {
                result = res,
                msg = msg
            }));
        }