Пример #1
0
        public async Task <IActionResult> Sacar(CancellationToken cancellationToken)
        {
            var contaBancaria = await _contaBancariaRepository.GetContaBancariaPadraoAsync(cancellationToken);

            var saldo = await _contaBancariaRepository.GetSaldoAsync(contaBancaria.IdExterno, cancellationToken);

            var model = new CriarMovimentacaoBancariaViewModel()
            {
                Saldo = saldo
            };

            return(View(model));
        }
Пример #2
0
 protected async Task <ContaBancaria> GetContaBancariaPadraoAsync(CancellationToken cancellationToken)
 => await _contaBancariaRepository.GetContaBancariaPadraoAsync(cancellationToken);