Beispiel #1
0
 public Pet DeletePet(int id)
 {
     if (id < 1)
     {
         throw new InvalidDataException("Pet not found");
     }
     return(_petShopRepo.DeletePet(id));
 }
 public Pet DeletePet(Pet pet)
 {
     return(_petShopRepository.DeletePet(pet));
 }
Beispiel #3
0
 public void DeletePet(int id)
 {
     _petShopRepository.DeletePet(id);
 }