public void Consume(ThingDeleted @event) { var thing = this.thingRepository.Get(@event.Id); var things = this.thingsRepository.Get(Root); things.Names.Remove(thing.Name); this.thingsRepository.AddOrUpdate(Root, things); this.thingRepository.Remove(@event.Id); }
public void Consume(ThingDeleted @event) { this.repository.Remove(@event.Id); }