示例#1
0
 public bool RegisterCourse(string courseName, string studentName)
 {
     if (!_registerCourse.CheckAvailable(courseName))
     {
         return(false);
     }
     return(_notifyStudent.Notify(studentName));
 }
示例#2
0
文件: Program.cs 项目: yojan126/Learn
        public bool RegisterCourse(string CourseName, string StudentName)
        {
            if (!registerCourse.CheckAvailable(CourseName))
            {
                return(false);
            }

            return(notifyStudent.Notify(StudentName));
        }