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

            transaction.ConfirmTransferIn();
        }
Example #2
0
 public void Handle(ICommandContext context, ConfirmTransferInCommand command)
 {
     context.Get <TransferTransaction>(command.AggregateRootId).ConfirmTransferIn();
 }