public async Task Execute(SetOrderResponsibleCommand command) { OrderAggregate aggregate = await Retrieve(command.EntityId); aggregate.SetResponsible(command.ResponsibleId); await session.Commit(command.EntityId); }
public async Task Execute(SetOrderResponsibleCommand command) { OrderAggregate aggregate = await Retrieve(command.EntityId); aggregate.SetResponsible(command.ResponsibleId); await session.Commit(command.EntityId); }