public void Commit() { _context.SaveChanges(); }
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()); }
public void Commit() { _context.SaveChanges(); }
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()); }