public async Task <IEnumerable <PetProfile> > ListByIllnessIdAsync(int illnessId)
        {
            var petIllness = await _petIllnessRepository.ListByIllnessIdAsync(illnessId);

            var petProfile = petIllness.Select(pi => pi.PetProfile).ToList();

            return(petProfile);
        }
Пример #2
0
 public async Task <IEnumerable <PetIllness> > ListByIllnessIdAsync(int illnessId)
 {
     return(await _petIllnessRepository.ListByIllnessIdAsync(illnessId));
 }