using JetBrains.Annotations;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
namespace System.Linq;
public static class AbpPagingQueryableExtensions
{
///
/// Used for paging with an object.
///
/// Queryable to apply paging
/// An object implements interface
public static IQueryable PageBy([NotNull] this IQueryable query, IPagedResultRequest pagedResultRequest)
{
Check.NotNull(query, nameof(query));
return query.PageBy(pagedResultRequest.SkipCount, pagedResultRequest.MaxResultCount);
}
}