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); }
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; } } }
public Boolean RemoveAssignedStore(Store storeToRemove) { if (storeToRemove.Equals(null)) { return false; } else { this.AssignedStores.Remove(storeToRemove); return true; } }