Exemplo n.º 1
0
        //PaymentTypes
        public PaymentTypesResponse ExecutePaymentTypes(PaymentTypesRequest request)
        {
            var response = new PaymentTypesResponse();

            Type type = request.GetType();

            if (type.FullName == "BOA.Types.Banking.PaymentTypesRequest")
            {
                var pr = new BOA.Process.Banking.PaymentTypes();

                if (request.MethodName == "GetPaymentTypes")
                {
                    response = pr.GetPaymentTypes((PaymentTypesRequest)request);
                }
            }
            return(response);
        }
Exemplo n.º 2
0
        public PaymentTypesResponse GetPaymentTypes(PaymentTypesRequest request)
        {
            Business.Banking.PaymentTypes paymentTypesBusiness  = new Business.Banking.PaymentTypes();
            List <PaymentTypesContract>   paymentTypesContracts = paymentTypesBusiness.GetPaymentTypes();

            if (paymentTypesContracts != null)
            {
                return(new PaymentTypesResponse()
                {
                    paymentTypesContracts = paymentTypesContracts,
                    IsSuccess = true
                });
            }
            return(new PaymentTypesResponse()
            {
                IsSuccess = false
            });
        }