示例#1
0
 public async Task CourseSignup(int courseId, string student, int age)
 {
     if (_courseRepository.CheckCourseCapacity(courseId))
     {
         await _courseRepository.CourseSignup(courseId, student, age);
     }
     else
     {
         throw new CourseFullException();
     }
 }