public bool Update(PetType model)
 {
     if (_petTypeValidationService.petTypeValidation(model))
     {
         return(_petTypeRepository.Update(model));
     }
     return(false);
 }
 public PetType Update(int index, string type)
 {
     try
     {
         return(_ptrep.Update(index, type));
     }
     catch (Exception e)
     {
         throw new ServiceException("Error updating pet type: " + e.Message, e);
     }
 }