public IHttpActionResult PostThreatment(Threatment threatment)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Threatment.Add(threatment);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (ThreatmentExists(threatment.Id))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = threatment.Id }, threatment);
        }
        public IHttpActionResult PutThreatment(int id, Threatment threatment)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != threatment.Id)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }