Beispiel #1
0
 public Order CreateOrder(int recipientID)
 {
     Order newOrder = new Order();
     newOrder.ID = -1;
     newOrder.CreatedTime = DateTime.Now;
     newOrder.RecipientId = recipientID;
     return newOrder;
 }
        public  void Add(Order target)
        {
            int maxid = this.orderList.Max(x => x.ID);

            target.ID = maxid + 1;

            this.orderList.Add(target);

            this.fileDbmgr.Save();
        }
 public  void Save(Order target)
 {
     this.fileDbmgr.Save();
 }
Beispiel #4
0
 public void Add(Order target)
 {
     this.repository.Add(target);
 }
Beispiel #5
0
 public void Save(Order target)
 {
     this.repository.Save(target);
 }