public IHttpActionResult Putconf_Intervention(int id, Entity.conf_Intervention conf_Intervention)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != conf_Intervention.recid)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult Getconf_Intervention(int id)
        {
            Entity.conf_Intervention conf_Intervention = db.conf_Intervention.Find(id);
            if (conf_Intervention == null)
            {
                return(NotFound());
            }

            return(Ok(conf_Intervention));
        }
        public IHttpActionResult Postconf_Intervention(Entity.conf_Intervention conf_Intervention)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.conf_Intervention.Add(conf_Intervention);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = conf_Intervention.recid }, conf_Intervention));
        }
        public IHttpActionResult Deleteconf_Intervention(int id)
        {
            Entity.conf_Intervention conf_Intervention = db.conf_Intervention.Find(id);
            if (conf_Intervention == null)
            {
                return(NotFound());
            }

            db.conf_Intervention.Remove(conf_Intervention);
            db.SaveChanges();

            return(Ok(conf_Intervention));
        }