Exemple #1
0
 public void Commit()
 {
     _context.SaveChanges();
 }
Exemple #2
0
 public void Put(int id, [FromBody] Bridge bridge)
 {
     bridge.BridgeId         = id;
     _db.Entry(bridge).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public int SaveChanges()
 {
     return(Db.SaveChanges());
 }