public PetType GetPetTypeById(int id) { /* * PetType petType = _petTypeRepository.GetPetTypes(new Filter()).List.Find(x => x.ColourId == id); * * PetType temPetType = new PetType * { * name = petType.name, * ColourId = petType.ColourId * * * * }; * * temPetType.Pets = _petRepository.GetPets(new Filter()).List.Where(pet => pet.PetType.ColourId == petType.ColourId).ToList(); * * return temPetType; */ return(_petTypeRepository.GetPetTypeById(id)); }
public PetType GetPetTypeById(int id) { return(_petTypeRepository.GetPetTypeById(id)); }