public void UpdateSchedule(Schedule schedule) { _db.Entry(schedule).State = EntityState.Modified; _db.SaveChanges(); }
public void UpdateAnnouncement(int id, Announcement announcement) { _db.Entry(announcement).State = EntityState.Modified; _db.SaveChanges(); }
public void UpdateCourse(Course course) { _db.Entry(course).State = EntityState.Modified; _db.SaveChanges(); }
public void UpdateTime(Time time) { _db.Entry(time).State = EntityState.Modified; _db.SaveChanges(); }
public void Update(DayOfTheWeek day) { _db.Entry(day).State = EntityState.Modified; _db.SaveChanges(); }
public void UpdatePicture(int id, ProfilePicture picture) { _db.Entry(picture).State = EntityState.Modified; _db.SaveChanges(); }