Ejemplo n.º 1
0
        public async Task <RedirectResult> CreateCheckingAccount(CuentaCorrienteDTO cuentaCorrienteDto)
        {
            CuentaCorriente cc = await _mediator.Send(new AddChekingAccount.Command(cuentaCorrienteDto));

            await _mediator.Send(new AddCheckingAccountTransactionCommand.Command(cc.Id, cc.Saldo, 1, cc.Saldo, DateTime.Now));

            return(new RedirectResult($"/bankaccount/GetAccountProducts/{cuentaCorrienteDto.IdCuentaBancaria}"));
        }
Ejemplo n.º 2
0
 public record Command(CuentaCorrienteDTO CuentaCorrienteDto) : IRequest <CuentaCorriente>;