Example #1
0
 public async Task <IEnumerable <SpecialityDTO> > GetByFacultyAsync(int facultyId)
 {
     return((await _specialityRepository.GetByFaculty(facultyId)
             .Include(s => s.SpecialityByFaculty)
             .OrderBy(s => s.Name)
             .ToListAsync())
            .Select(s => new SpecialityDTO(s)));
 }