Exemplo n.º 1
0
        public ActionResult DeleteItem(string name, int id)
        {
            // получаем дескриптор
            var info = _dataService.GetDescriptor(name);

            if (info == default)
            {
                return(NotFound());
            }
            else
            {
                _dataService.DeleteEntityItem(info, id);
                return(new JsonResult("OK"));
            }
        }