public void When(HappeningInventoryItemCreated e) { if (e.IsDefault) { QueryModelRepository.Routing.DefaultHappening = e.Id; } }
public void When(HappeningInventoryItemCreated e) { if (e.IsDefault) { this.MarkAllAsNotDefault(); } this.Happenings.Add(new HappeningInfo { Id = e.Id, IsDefault = e.IsDefault }); }
public void When(HappeningInventoryItemCreated e) { QueryModelRepository.EditHappenings.Add(new Happening { Key = e.Id }); if (e.IsDefault) { SetAsDefault(e.Id); } }
public Task When(HappeningInventoryItemCreated e) => this.repository.CreateAndExecute(e.Id, h => h.Create(e.Id));