Example #1
0
 public void Create(Users entity)
 {
     _dbContext.Entry(entity).State = EntityState.Added;
     _dbContext.SaveChanges();
 }
Example #2
0
 public void Update(Tickets entity)
 {
     _dbContext.Entry(entity).State = EntityState.Modified;
     _dbContext.SaveChanges();
 }