public async Task <IEnumerable <Course> > ListByCareerIdAsync(int careerId) { var careerCourses = await _careerCourseRepository.ListByCareerIdAsync(careerId); var courses = careerCourses.Select(pt => pt.Course).ToList(); return(courses); }
public async Task <IEnumerable <CareerCourse> > ListByCareerIdAsync(int careerId) { return(await _careerCourseRepository.ListByCareerIdAsync(careerId)); }