public async Task <IActionResult> Delete(int id) { var book = await service.GetSingleAsync(id); if (book is null) { return(NotFound()); } await service.DeleteAuthorAsync(id); return(Ok()); }