public async Task <IEnumerable <OwnerProfile> > ListByPetIdAsync(int petId)
        {
            var petOwner = await _petOwnerRepository.ListByPetIdAsync(petId);

            var ownerProfiles = petOwner.Select(po => po.OwnerProfile).ToList();

            return(ownerProfiles);
        }
Esempio n. 2
0
 public async Task <IEnumerable <PetOwner> > ListByPetIdAsync(int petId)
 {
     return(await _petOwnerRepository.ListByPetIdAsync(petId));
 }