Example #1
0
        public override async Task <CuentaResponse> ConsultarSaldoCta
            (CuentaRequest request, ServerCallContext _context)
        {
            logger.LogWarning("Llego a opbanca grpc");

            // TxRequestBE be = new TxRequestBE()
            // {
            //     IdCuentaDestino = request.IdCuentaDestino,
            // };
            SaldoCuentaResponseBE resp = await cuentaServices.RecuperarSaldoIdCuenta(request.IdCuenta);

            CuentaResponse txRpta = new CuentaResponse()
            {
                Saldo = (double)resp.Amount
            };

            return(txRpta);
        }
Example #2
0
        public async Task <IActionResult> RecuperarSaldoCuenta(int idCuenta)
        {
            SaldoCuentaResponseBE res = await _cuentaServices.RecuperarSaldoIdCuenta(idCuenta);

            return(Ok(res));
        }