示例#1
0
        public async Task <IActionResult> Delete(int id)
        {
            if (!_bookService.Exists(id))
            {
                return(NotFound());
            }

            await _bookService.DeleteAsync(id);

            return(Ok());
        }