コード例 #1
0
        public PetType FindPetTypeByIdWithPets(int id)
        {
            List <PetType> foundPetType = _petTypeRepo.FindPetTypeByIdWithPets(id);

            if (foundPetType.Count != 1)
            {
                return(null);
            }
            else
            {
                return(foundPetType[0]);
            }
        }