Пример #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var result = await _service.DeleteObjectAsync(id);

            return(result == true?StatusCode(200) : StatusCode(500));
        }