public List <PetType> GetAll()
 {
     try
     {
         return(_ptrep.GetAll().ToList());
     }
     catch (Exception e)
     {
         throw new ServiceException("Error gettin all pet types: " + e.Message, e);
     }
 }
Example #2
0
 public IEnumerable <PetType> GetAll()
 {
     return(_petTypeRepository.GetAll());
 }