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}"));
        }
 public record Command(CuentaCorrienteDTO CuentaCorrienteDto) : IRequest <CuentaCorriente>;