// GET: api/Order/5
 public HttpResponseMessage Get(int id)
 {
     using (OrderManagementSystemEntities entitites = new OrderManagementSystemEntities())
     {
         var entity = entitites.Orders.FirstOrDefault(o => o.OrderID == id);
         if (entity != null)
         {
             return(Request.CreateResponse(HttpStatusCode.OK, entitites.sp_Orders_CRUD(id, 0, "", 0, "GetOrder").ToList()));
         }
         else
         {
             return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Orders with ID: " + id.ToString()));
         }
     }
 }
 // GET: api/Order
 public HttpResponseMessage Get()
 {
     using (OrderManagementSystemEntities entitites = new OrderManagementSystemEntities())
     {
         var entity = entitites.Orders.ToList();
         if (entity != null)
         {
             return(Request.CreateResponse(HttpStatusCode.OK, entitites.sp_Orders_CRUD(0, 0, " ", 0, " ").ToList()));
         }
         else
         {
             return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Orders as of now."));
         }
     }
 }