Example #1
0
        public PaymentMethodCollection GetPaymentsCollection(string whereExpression, string orderByExpression)
        {
            PaymentMethodData       data = new PaymentMethodData();
            PaymentMethodCollection col  = new PaymentMethodCollection();

            try
            {
                col = data.GetAllPaymentMethodsDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetPaymentsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
Example #2
0
        public PaymentMethodCollection GetAllPaymentMethodCollection()
        {
            PaymentMethodData       data = new PaymentMethodData();
            PaymentMethodCollection col  = new PaymentMethodCollection();

            try
            {
                col = data.GetAllPaymentMethodsCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllPaymentMethodCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }