public void Handle(ItemsCheckedInToInventory message) { InventoryItemDetailsDto d = GetDetailsItem(message.Id); d.CurrentCount += message.Count; d.Version = message.Version; }
public void Handle(ItemsCheckedInToInventory message) { ReadDBContext dbcontext = Readcontext; InventoryItemDetailsDto d = GetDetailsItem(message.Id, dbcontext); d.CurrentCount += message.Count; d.Version = message.Version; dbcontext.SaveChanges(); }