public void Handle(ItemsRemovedFromInventory message) { InventoryItemDetailsDto d = GetDetailsItem(message.Id); d.CurrentCount -= message.Count; d.Version = message.Version; }
public void Handle(ItemsCheckedInToInventory message) { InventoryItemDetailsDto d = GetDetailsItem(message.Id); d.CurrentCount += message.Count; d.Version = message.Version; }
public void Handle(InventoryItemRenamed message) { InventoryItemDetailsDto d = GetDetailsItem(message.Id); d.Name = message.NewName; d.Version = message.Version; }