public async Task <IEnumerable <PetProfile> > ListByIllnessIdAsync(int illnessId) { var petIllness = await _petIllnessRepository.ListByIllnessIdAsync(illnessId); var petProfile = petIllness.Select(pi => pi.PetProfile).ToList(); return(petProfile); }
public async Task <IEnumerable <PetIllness> > ListByIllnessIdAsync(int illnessId) { return(await _petIllnessRepository.ListByIllnessIdAsync(illnessId)); }