public IHttpActionResult PutReferCBVS(int id, ReferCBVS referCBVS)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != referCBVS.ReferCBVSId)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostReferCBVS(ReferCBVS referCBVS)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.ReferCBVS.Add(referCBVS);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = referCBVS.ReferCBVSId }, referCBVS);
        }