public async Task HandleAsync(ICommandContext context, ConfirmAccountValidatePassedCommand command) { var transaction = await context.GetAsync <TransferTransaction>(command.AggregateRootId); transaction.ConfirmAccountValidatePassed(command.AccountId); }
public void Handle(ICommandContext context, ConfirmAccountValidatePassedCommand command) { context.Get <TransferTransaction>(command.AggregateRootId).ConfirmAccountValidatePassed(command.AccountId); }