// PUT: api/Book/5
        public HttpResponseMessage Put(int id, [FromBody] Book newBook)
        {
            bool successfulEdit = bookDBHelper.EditBook(id, newBook);
            HttpResponseMessage response;

            if (successfulEdit)
            {
                response = Request.CreateResponse(HttpStatusCode.NoContent);
            }
            else
            {
                response = Request.CreateResponse(HttpStatusCode.NotFound);
            }
            return(response);
        }
 public bool EditBook(int bookId, Book newBook)
 {
     return(bookDBHelper.EditBook(bookId, newBook));
 }