public void Handle(CreateInventoryItem command) { var aggregate = new InventoryAggregateRoot(command.Id, command.Name); _eventStore.Save(aggregate.Id, aggregate.GetUncommittedChanges(), -1); }
public void Handle(CreateInventoryItem command) { var aggregate = new InventoryAggregateRoot(command.Id, command.Name); _eventStore.Save(aggregate, -1); }