public async Task <IEnumerable <OwnerProfile> > ListByPetIdAsync(int petId) { var petOwner = await _petOwnerRepository.ListByPetIdAsync(petId); var ownerProfiles = petOwner.Select(po => po.OwnerProfile).ToList(); return(ownerProfiles); }
public async Task <IEnumerable <PetOwner> > ListByPetIdAsync(int petId) { return(await _petOwnerRepository.ListByPetIdAsync(petId)); }