Exemplo 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));
        }
Exemplo 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));
        }