示例#1
0
        public FilteredList <PetType> GetAllTypes(FilterSearch filter)
        {
            if (!string.IsNullOrEmpty(filter.SearchText) && string.IsNullOrEmpty(filter.SearchField))
            {
                filter.SearchField = "Type";
            }

            return(_typeRepo.GetAllTypesSearch(filter));
        }