public void Save(Item item)
 {
     dbContext.Entry(item).State = EntityState.Added;
     dbContext.SaveChanges();
 }
示例#2
0
 public void Save(ItemNotification notification)
 {
     dbContext.Entry(notification).State = EntityState.Added;
     dbContext.SaveChanges();
 }