public IHttpActionResult Book(int id) { var book = _library.GetBook(id); if (book != null) { return(Ok(book)); } return(BadRequest("Bad book id, book not found :(")); }