예제 #1
0
 public void PlaceOrder(List<OrderItem> ListOfItems, string custName, Store store, MethodPayment paymentMethod)
 {
     this.ListOfOrderItems = ListOfItems;
     this.CustName = custName;
     this.OrderDate = DateTime.Today;
     this.store = store;
     //this.EmpBonusPayable = CalcEmpBonus();
     this.paymentMethod = paymentMethod;
     this.PickupDate = DateTime.Today.AddDays(7);
 }
예제 #2
0
 public Boolean AddAssignedStore(Store storeToAdd)
 {
     if (storeToAdd.Equals(null))
     {
         return false;
     }
     else
     {
         if (AssignedStores.Contains(storeToAdd))
         {
             return false;
         }
         else
         {
             this.AssignedStores.Add(storeToAdd);
             return true;
         }
     }
 }
예제 #3
0
 public Boolean RemoveAssignedStore(Store storeToRemove)
 {
     if (storeToRemove.Equals(null))
     {
         return false;
     }
     else
     {
         this.AssignedStores.Remove(storeToRemove);
         return true;
     }
 }