Exemplo n.º 1
0
        protected IQueryable <T> BuildFilters <T>(IQueryable <T> query, ICollection <FilteringBaseModel> filters)
        {
            if (filters.Count == 0)
            {
                return(query);
            }

            var filterExpression = ExpressionHelper.BuildFilter <T>(filters);

            return(query.Where(filterExpression));
        }