Example #1
0
        public Doctor UpdateDoctors(Doctor doctor)
        {
            context.Attach(doctor);
            context.Entry(doctor).State = EntityState.Modified;
            context.SaveChanges();

            return(doctor);
        }