public void Update(APPOINTMENTS appointment) { objDB.Update(appointment); }
public void Update(APPOINTMENTS appointment) { Db.Entry(appointment).State = System.Data.Entity.EntityState.Modified; Db.SaveChanges(); }
public void Insert(APPOINTMENTS appointment) { objDB.Insert(appointment); }
public void Insert(APPOINTMENTS appointment) { Db.APPOINTMENTS.Add(appointment); Db.SaveChanges(); }