public PetType Delete(int id) { try { return(_ptrep.Delete(id)); } catch (Exception e) { throw new ServiceException("Error deleting pet type: " + e.Message, e); } }
public bool Delete(int Id) { return(_petTypeRepository.Delete(Id)); }
public PetType DeletePetType(int id) { return(_petTypeRepo.Delete(id)); }