public async Task <IEnumerable <PetProfile> > ListByOwnerProfileIdAsync(int ownerProfileId)
        {
            var petOwner = await _petOwnerRepository.ListByOnwerIdAsync(ownerProfileId);

            var petProfile = petOwner.Select(po => po.PetProfile).ToList();

            return(petProfile);
        }
Exemple #2
0
 public async Task <IEnumerable <PetOwner> > ListByOnwerIdAsync(int ownerId)
 {
     return(await _petOwnerRepository.ListByOnwerIdAsync(ownerId));
 }