コード例 #1
0
 private void RequestBuy(RequestCreditCardBuyCommand command, RequestCreditCardBuyResponse response)
 {
     try
     {
         _wallet.Buy(command.AmountValue);
         _walletService.Buy(_wallet);
     }
     catch (Exception ex)
     {
         response.AddError($"Erro ao realizar a compra. {ex.Message}");
     }
 }