예제 #1
0
        public async Task <IEnumerable <Course> > ListByCareerIdAsync(int careerId)
        {
            var careerCourses = await _careerCourseRepository.ListByCareerIdAsync(careerId);

            var courses = careerCourses.Select(pt => pt.Course).ToList();

            return(courses);
        }
예제 #2
0
 public async Task <IEnumerable <CareerCourse> > ListByCareerIdAsync(int careerId)
 {
     return(await _careerCourseRepository.ListByCareerIdAsync(careerId));
 }