Пример #1
0
        public JsonResult DeleteItem(int ItemId)
        {
            var _menuItemManager = new MenuItemManager();
            var item             = _menuItemManager.GetById(ItemId);

            if (item.ItemId > 0)
            {
                _menuItemManager.Delete(ItemId);

                return(Json(true));
            }
            else
            {
                return(Json(false));
            }
        }