You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework.Service.../Connected.ServiceModel/Search/SearchExtensions.cs

10 lines
296 B

namespace Connected.ServiceModel.Search;
public static class SearchExtensions
{
public static IEnumerable<TEntity> WithPaging<TEntity>(this IEnumerable<TEntity> entities, SearchArgs args)
{
return entities.Skip((args.Paging.Index - 1) * args.Paging.Size)
.Take(args.Paging.Size);
}
}