Example #1
0
        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();
        }
Example #2
0
 private void Apply(InventoryItemDeactivated e)
 {
     _activated = false;
 }
Example #3
0
 private void Apply(InventoryItemDeactivated e)
 {
     _activated = false;
 }
Example #4
0
 public void Handle(InventoryItemDeactivated message)
 {
     BullShitDatabase.list.RemoveAll(x => x.Id == message.Id);
 }
Example #5
0
 public void Handle(InventoryItemDeactivated message)
 {
     BullShitDatabase.details.Remove(message.Id);
 }
Example #6
0
 public void Handle(InventoryItemDeactivated message)
 {
     MemoryReadDatabase.details.Remove(message.Id);
 }