Пример #1
0
        public void Handle(ItemsCheckedInToInventory message)
        {
            InventoryItemDetailsDto d = GetDetailsItem(message.Id);

            d.CurrentCount += message.Count;
            d.Version       = message.Version;
        }
Пример #2
0
        public void Handle(ItemsCheckedInToInventory message)
        {
            ReadDBContext           dbcontext = Readcontext;
            InventoryItemDetailsDto d         = GetDetailsItem(message.Id, dbcontext);

            d.CurrentCount += message.Count;
            d.Version       = message.Version;
            dbcontext.SaveChanges();
        }