public IHttpActionResult PostOrder_All(Order_All order_All)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Order_All.Add(order_All);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (Order_AllExists(order_All.Order_ID))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = order_All.Order_ID }, order_All));
        }
        public IHttpActionResult PutOrder_All(string id, Order_All order_All)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != order_All.Order_ID)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetOrder_All(string id)
        {
            Order_All order_All = db.Order_All.Find(id);

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

            return(Ok(order_All));
        }
        public IHttpActionResult DeleteOrder_All(string id)
        {
            Order_All order_All = db.Order_All.Find(id);

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

            db.Order_All.Remove(order_All);
            db.SaveChanges();

            return(Ok(order_All));
        }