Пример #1
0
        public async Task <IEnumerable <TransactionModel> > Pay(PaymentServiceConstants.PaymentType type, PaymentModel payment)
        {
            var response = await _paymentProvider.GetPaymentOperation(type).Execute(payment);

            return(_mapper.Map <IEnumerable <TransactionDTO>, IEnumerable <TransactionModel> >(response));
        }