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