Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
/// <summary> /// This method checks for a Purchase Order if a Membership can be found and activates it if so. /// </summary> public void ActivateMembership(PurchaseOrder purchaseOrder) { if (purchaseOrder.ItemList != null) { // Check for items in the order. foreach (Item item in purchaseOrder.ItemList) { // Find the memberships and activate them. if (item.ItemType == ItemType.Membership) { _iCustomer.ActivateMembership(item.ItemId); } } } }