public async Task <IEnumerable <SpecializationDTO> > GetBySpecialityAsync(int specialityId) { return((await _specializationRepository.GetBySpeciality(specialityId) .OrderBy(s => s.Name) .ToListAsync()) .Select(s => new SpecializationDTO(s))); }
public async Task <IEnumerable <SpecializationDTO> > GetBySpecialityAsync(int specialityId) { return((await _specializationRepository.GetBySpeciality(specialityId) .OrderBy(s => s.Name) .ToListAsync()) .Select(s => new SpecializationDTO(s))); }