Beispiel #1
0
 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));
 }
Beispiel #2
0
 public PetType GetPetTypeById(int id)
 {
     return(_petTypeRepository.GetPetTypeById(id));
 }