public IHttpActionResult GetBook(int id) { Book book = db.FindBookById(id); if (book == null) { return(NotFound()); } return(Ok(book)); }