public Doctor UpdateDoctors(Doctor doctor) { context.Attach(doctor); context.Entry(doctor).State = EntityState.Modified; context.SaveChanges(); return(doctor); }