Exemplo n.º 1
0
 private void AddCollectionToExcludePaymentMethodList(IEnumerable <PaymentMethod> paymentMethods)
 {
     foreach (var pm in paymentMethods)
     {
         if (pm == PaymentMethod.INVOICE)
         {
             ExcludedPaymentMethod.AddRange(InvoiceType.GetAllInvoiceValues());
         }
         else if (pm == PaymentMethod.PAYMENTPLAN)
         {
             ExcludedPaymentMethod.AddRange(PaymentPlanType.AllPaymentPlanValues());
         }
         else
         {
             ExcludedPaymentMethod.Add(pm.Value);
         }
     }
 }