Beispiel #1
0
        public List <Order> GetOrder(string id)
        {
            int orderId = Convert.ToInt16(id);

            return(BusinessLogic.GetOrder(orderId));
        }
Beispiel #2
0
 public List <Order> ListOrdersBy(string name)
 {
     return(BusinessLogic.ListOrdersBy(name));
 }
Beispiel #3
0
 public List <Size> ListSize()
 {
     return(BusinessLogic.ListSize());
 }
Beispiel #4
0
        public void DeleteOrder(string id)
        {
            int orderId = Convert.ToInt16(id);

            BusinessLogic.DeleteOrder(orderId);
        }
Beispiel #5
0
 public void UpdateOrder(WCF_Order_Contract order)
 {
     BusinessLogic.UpdateOrder(order.OrderID, order.FoodID, order.Size, order.Chilli, order.Salt, order.Pepper);
 }
Beispiel #6
0
 public void AddOrder(WCF_Order_Contract order)
 {
     BusinessLogic.AddOrder(order.User, order.FoodID, order.FoodName, order.Size, order.Chilli, order.Salt, order.Pepper);
 }
Beispiel #7
0
 public List <Food> ListFood()
 {
     return(BusinessLogic.ListFood());
 }
Beispiel #8
0
        public string GetFood(string id)
        {
            int foodId = Convert.ToInt16(id);

            return(BusinessLogic.GetFood(foodId));
        }