예제 #1
0
 public void Handle(ICommandContext context, ConfirmDepositCommand command)
 {
     context.Get <DepositTransaction>(command.AggregateRootId).ConfirmDeposit();
 }
        public async Task HandleAsync(ICommandContext context, ConfirmDepositCommand command)
        {
            var transaction = await context.GetAsync <DepositTransaction>(command.AggregateRootId);

            transaction.ConfirmDeposit();
        }