public IHttpActionResult Delete(string id) { var book = _bookService.Get(id); if (book == null) { return(NotFound()); } _bookService.Remove(book.Id); return(Ok()); }