public void UpdateDeliveryTime([FromBody] JToken json_order) { CustOrderDAL orderDAL = new CustOrderDAL(); int order_id = int.Parse(json_order["order_id"].ToString()); orderDAL.UpdateDeliveryTime(order_id); }
public string CancelOrder([FromBody] JToken json_order) { CustOrderDAL orderDAL = new CustOrderDAL(); int order_id = int.Parse(json_order["order_id"].ToString()); return(orderDAL.CancelOrder(order_id)); }
public ICollection <CustOrder> Undelivered(int id) { CustOrderDAL api = new CustOrderDAL(); return(api.GetUndeliveredBasketOrders(id)); }
public CustOrder GetOrder(int id) { CustOrderDAL api = new CustOrderDAL(); return(api.GetOrder(id)); }
public string AcceptOrder([FromBody] OrderAccept order_accept) { CustOrderDAL orderDAL = new CustOrderDAL(); return(orderDAL.AcceptOrder(order_accept.order_id, order_accept.basket_id)); }
public string UpdateCustomerFeedback([FromBody] CustomerFeedback feedback) { CustOrderDAL orderDAL = new CustOrderDAL(); return(orderDAL.UpdateCustomerFeedback(feedback)); }
public OrderStatus CreateOrder([FromBody] NewCustOrder value) { CustOrderDAL api = new CustOrderDAL(); return(api.CreateOrder(value)); }
public OrderStatus GetOrderStatus(int id) { CustOrderDAL api = new CustOrderDAL(); return(api.GetOrderStatus(id)); }