Beispiel #1
0
        public async Task <ActionResult> AutorizarPagamento(PagamentoRequestDto pagamentoRequest)
        {
            try
            {
                var pagamentoResponse = await _pagamentoService.AutorizarPagamento(pagamentoRequest);

                return(Ok(pagamentoResponse));
            }
            catch
            {
                return(BadRequest("Ocorreu um erro desconhecido."));
            }
        }