public JsonResult DeleteItem(int ItemId) { var _cmsItemManager = new CMSManager(); var item = _cmsItemManager.GetById(ItemId); if (item.Id > 0) { _cmsItemManager.Delete(ItemId); return(Json(true)); } else { return(Json(false)); } }