Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public bool ModifyCapacity(int id, int capacity)
        {
            Course course = new Course()
            {
                CourseID = id, maxStudents = capacity
            };
            var data = new EfUpdate();

            return(data.updateCourse(course));
        }