/// <summary> /// Filters the Type by Type names /// </summary> /// <param name="filter"></param> /// <returns></returns> public FilteredList <PetTypes> GetAllPetTypes(Filter filter) { if (!string.IsNullOrEmpty(filter.SearchText) && string.IsNullOrEmpty(filter.SearchField)) { filter.SearchField = "PetType"; } return(_petTypeRepo.ReadAll(filter)); }
public List <PetType> GetAllPetTypes() { return(_petTypeRepo.ReadAll().ToList()); }