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