Esempio n. 1
0
        public DoctorsSchedule Update(DoctorsSchedule doctorsScheduleChanges)
        {
            var doctorschedul = context.DoctorsSchedule.Attach(doctorsScheduleChanges);

            doctorschedul.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(doctorsScheduleChanges);
        }
Esempio n. 2
0
        public DoctorsSchedule Add(DoctorsSchedule doctorsSchedule)
        {
            context.DoctorsSchedule.Add(doctorsSchedule);
            context.SaveChanges();
            return(doctorsSchedule);

            ;
        }