예제 #1
0
        public async Task <IEnumerable <Specialty> > ListByVeterinaryidAsync(int veterinaryId)
        {
            var veterinarySpecialty = await _veterinarySpecialtyRepository.ListByVeterinaryIdAsync(veterinaryId);

            var specialties = veterinarySpecialty.Select(vv => vv.Specialty).ToList();

            return(specialties);
        }
 public async Task <IEnumerable <VeterinarySpecialty> > ListByVeterinaryIdAsync(int veterinaryId)
 {
     return(await _veterinarySpecialtyRepository.ListByVeterinaryIdAsync(veterinaryId));
 }