public async Task HandleAsync(ICommandContext context, MarkAsSuccess command) { var order = await context.GetAsync <Order>(command.AggregateRootId); order.MarkAsSuccess(); }
public void Handle(ICommandContext context, MarkAsSuccess command) { context.Get <Order>(command.AggregateRootId).MarkAsSuccess(); }