/// <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));
 }
示例#2
0
 public List <PetType> GetAllPetTypes()
 {
     return(_petTypeRepo.ReadAll().ToList());
 }