/// <summary> /// /// </summary> /// <param name="teacher"></param> /// <param name="course"></param> /// <param name="state"></param> public void SetCourseState(Teacher teacher, Course course, EnumState state) => FindData(teacher, course).CourseManager.State = state;
/// <summary> /// /// </summary> /// <param name="teacher"></param> /// <param name="course"></param> /// <returns></returns> public ArchiveItem FindData(Teacher teacher, Course course) => ArchiveList.Find(i => i.CourseManager.Course == course && i.Teacher == teacher);