Пример #1
0
 public FilteredList <Pet> GetAllFilterPets(Filter filter)
 {
     if (!string.IsNullOrEmpty(filter.SearchText) && string.IsNullOrEmpty(filter.SearchField))
     {
         filter.SearchField = "Name";
     }
     return(_petShopRepo.ReadAll(filter));
 }