public IHttpActionResult PutPatient_Status(string id, Patient_Status patient_Status)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != patient_Status.Name)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult PostPatient_Status(Patient_Status patient_Status)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Patient_Status.Add(patient_Status);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (Patient_StatusExists(patient_Status.Name))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = patient_Status.Name }, patient_Status));
        }
        public IHttpActionResult DeletePatient_Status(string id)
        {
            Patient_Status patient_Status = db.Patient_Status.Find(id);

            if (patient_Status == null)
            {
                return(NotFound());
            }

            db.Patient_Status.Remove(patient_Status);
            db.SaveChanges();

            return(Ok(patient_Status));
        }