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); }
public Order GetDeliveryById(int Id) { return(DeliveryOrders.Find(x => x.Id == Id)); }