public void Handle(InventoryItemDeactivated message) { //BullShitDatabase.list.RemoveAll(x => x.Id == message.Id); ReadDBContext dbcontext = Readcontext; var item = dbcontext.InventoryItemList.FirstOrDefaultAsync(x => x.Id == message.Id).Result; dbcontext.InventoryItemList.Remove(item); dbcontext.SaveChanges(); }
private void Apply(InventoryItemDeactivated e) { _activated = false; }
private void Apply(InventoryItemDeactivated e) { _activated = false; }
public void Handle(InventoryItemDeactivated message) { BullShitDatabase.list.RemoveAll(x => x.Id == message.Id); }
public void Handle(InventoryItemDeactivated message) { BullShitDatabase.details.Remove(message.Id); }
public void Handle(InventoryItemDeactivated message) { MemoryReadDatabase.details.Remove(message.Id); }