Пример #1
0
        public async Task <IActionResult> DelDataType(int?id)
        {
            int result = 0;

            try
            {
                await _dataTypeService.DelDataType(id);
            }
            catch (System.Exception)
            {
                result = -1;
            }
            return(Json(result));
        }