public IHttpActionResult PutStatus_table(int id, Status_table status_table)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != status_table.ID)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetStatus_table(int id)
        {
            Status_table status_table = db.Status_table.Find(id);

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

            return(Ok(status_table));
        }
        public IHttpActionResult PostStatus_table(Status_table status_table)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Status_table.Add(status_table);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = status_table.ID }, status_table));
        }
        public IHttpActionResult DeleteStatus_table(int id)
        {
            Status_table status_table = db.Status_table.Find(id);

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

            db.Status_table.Remove(status_table);
            db.SaveChanges();

            return(Ok(status_table));
        }