Пример #1
0
        public async Task <IActionResult> Capturar(Venda venda, String id)
        {
            string PaymentId = venda.payment != null?venda.payment.PaymentId.ToString() : id;

            await _pagamento.Capturar(PaymentId);

            return(RedirectToAction("Visualizar", "Pagamento", new { id = PaymentId }));
        }