Пример #1
0
        public override IQueryable <TestViewModel> ApplyFilterParams <TestViewModel>(IQueryable <TestViewModel> data, FilterParams filterParams)
        {
            var predicate = PredicateBuilder.True <TestViewModel>();
            var ids       = ParseIntList(filterParams.acfpIDs);

            predicate = this.IdPredicate(ids, predicate);
            return(data.Where(predicate));
        }
Пример #2
0
 /// <summary>
 /// Generic function for applying filter parameters.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="data"></param>
 /// <param name="filterParams"></param>
 /// <returns></returns>
 public abstract IQueryable <T> ApplyFilterParams <T>(IQueryable <T> data, FilterParams filterParams) where T : BaseViewModel;