public void Edit(Position position) { db.Entry(position).State = EntityState.Modified; db.SaveChanges(); }
public void Add(Position position) { db.Positions.Add(position); db.SaveChanges(); }