Example #1
0
 def get_all_by_teacher_id(self, teacher_id: int):
     return Lessons.get_all_by_teacher_id(teacher_id)
Example #2
0
 def new(self, group_id, title, description, file_path, lesson_date):
     return Lessons.new(group_id, title, description, file_path, lesson_date)
Example #3
0
 def get_all(self):
     return Lessons().get_all()
Example #4
0
 def find_by_id(self, id):
     return Lessons.find_by_id(id)
Example #5
0
 def all(self, group_id):
     return Lessons.get_lessons_by_group_id(group_id)
Example #6
0
 def delete(self, id):
     return Lessons.delete(id)
Example #7
0
 def edit(self, title, description, file_path, lesson_date):
     return Lessons.edit(title, description, file_path, lesson_date)