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