public bool ModifyCourseTime(int id, string startTime, string endTime) { Course course = new Course() { CourseID = id, StartClassTime = TimeSpan.Parse(startTime), EndClassTime = TimeSpan.Parse(endTime) }; var data = new EfUpdate(); return(data.updateCourse(course)); }
public bool ModifyCapacity(int id, int capacity) { Course course = new Course() { CourseID = id, maxStudents = capacity }; var data = new EfUpdate(); return(data.updateCourse(course)); }