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