示例#1
0
        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);
        }
示例#2
0
        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));
        }
示例#3
0
        public ICollection <CustOrder> Undelivered(int id)
        {
            CustOrderDAL api = new CustOrderDAL();

            return(api.GetUndeliveredBasketOrders(id));
        }
示例#4
0
        public CustOrder GetOrder(int id)
        {
            CustOrderDAL api = new CustOrderDAL();

            return(api.GetOrder(id));
        }
示例#5
0
        public string AcceptOrder([FromBody] OrderAccept order_accept)
        {
            CustOrderDAL orderDAL = new CustOrderDAL();

            return(orderDAL.AcceptOrder(order_accept.order_id, order_accept.basket_id));
        }
示例#6
0
        public string UpdateCustomerFeedback([FromBody] CustomerFeedback feedback)
        {
            CustOrderDAL orderDAL = new CustOrderDAL();

            return(orderDAL.UpdateCustomerFeedback(feedback));
        }
示例#7
0
        public OrderStatus CreateOrder([FromBody] NewCustOrder value)
        {
            CustOrderDAL api = new CustOrderDAL();

            return(api.CreateOrder(value));
        }
示例#8
0
        public OrderStatus GetOrderStatus(int id)
        {
            CustOrderDAL api = new CustOrderDAL();

            return(api.GetOrderStatus(id));
        }