Example #1
0
        public void CompleteOrder(int Id)
        {
            Order tmp = DeliveryOrders.Find(x => x.Id == Id);

            DeliveryOrders.RemoveAll(x => x.Id == Id);
            tmp.CompleteOrderDate = DateTime.Now;
            DeliveryCompleted.Add(tmp);
        }
Example #2
0
 public Order GetDeliveryById(int Id)
 {
     return(DeliveryOrders.Find(x => x.Id == Id));
 }