public void Handle(InventoryItemRenamed message) { InventoryItemDetailsDto d = GetDetailsItem(message.Id); d.Name = message.NewName; d.Version = message.Version; }
public void Handle(InventoryItemRenamed message) { //var item = BullShitDatabase.list.Find(x => x.Id == message.Id); ReadDBContext dbcontext = Readcontext; var item = dbcontext.InventoryItemList.FirstOrDefaultAsync(x => x.Id == message.Id).Result; item.Name = message.NewName; dbcontext.SaveChanges(); }
public void Handle(InventoryItemRenamed message) { ReadDBContext dbcontext = Readcontext; InventoryItemDetailsDto d = GetDetailsItem(message.Id, dbcontext); d.Name = message.NewName; d.Version = message.Version; dbcontext.SaveChanges(); }
public void Handle(InventoryItemRenamed message) { var item = BullShitDatabase.list.Find(x => x.Id == message.Id); item.Name = message.NewName; }