public IHttpActionResult PutBOOKS(int id, BOOKS bOOKS)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != bOOKS.BOOKID)
            {
                return BadRequest();
            }

            db.Entry(bOOKS).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!BOOKSExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostBOOKS(BOOKS bOOKS)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.BOOKS.Add(bOOKS);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = bOOKS.BOOKID }, bOOKS);
        }