Esempio n. 1
0
        public async Task HandleAsync(ICommandContext context, ConfirmAccountValidatePassedCommand command)
        {
            var transaction = await context.GetAsync <TransferTransaction>(command.AggregateRootId);

            transaction.ConfirmAccountValidatePassed(command.AccountId);
        }
Esempio n. 2
0
 public void Handle(ICommandContext context, ConfirmAccountValidatePassedCommand command)
 {
     context.Get <TransferTransaction>(command.AggregateRootId).ConfirmAccountValidatePassed(command.AccountId);
 }