Exemplo n.º 1
0
        public async Task Execute(DeclineOrderCommand command)
        {
            OrderAggregate aggregate = await Retrieve(command.EntityId);

            aggregate.Decline();
            await session.Commit(command.EntityId);
        }