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

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