/// <summary> /// Returns a paged, filtered and sorted collection. /// </summary> /// <param name="settings">Settings model for the search.</param> /// <returns>Collection of filtered items result.</returns> public IPagedDataResult <Entity> GetPagedData(PagedDataSettings settings) { return(_dataPager.GetPagedData(Collection.AsQueryable(), settings, this.AddPreConditionsPagedDataFilter(settings), this.AddExtraPagedDataFilter(settings))); }
/// <summary> /// Returns a collection of data results that can be paged. /// </summary> /// <param name="settings">Settings for the search.</param> /// <returns>Filled PagedData instance.</returns> public IPagedDataResult <Entity> GetPagedData(PagedDataSettings settings) { return(_dataSourcePager.GetPagedData((IQueryable <Entity>) this.List(), settings, this.AddPreConditionsPagedDataFilter(settings), this.AddExtraPagedDataFilter(settings))); }
/// <summary> /// Returns a collection of data results that can be paged. /// </summary> /// <param name="settings">Settings for the search.</param> /// <returns>Filled PagedData instance.</returns> public IPagedDataResult <Entity> GetPagedData(PagedDataSettings settings) { return(_dataSourcePager.GetPagedData(GetQueryable(), settings, AddPreConditionsPagedDataFilter(settings), AddExtraPagedDataFilter(settings))); }