Exemplo n.º 1
0
        public async Task HandleAsync(ICommandContext context, MarkAsSuccess command)
        {
            var order = await context.GetAsync <Order>(command.AggregateRootId);

            order.MarkAsSuccess();
        }
Exemplo n.º 2
0
 public void Handle(ICommandContext context, MarkAsSuccess command)
 {
     context.Get <Order>(command.AggregateRootId).MarkAsSuccess();
 }