Commit 762e2288 authored by thienvo's avatar thienvo

added page size and page index to sive model

parent 8adb1945
...@@ -595,7 +595,9 @@ namespace Sieve.Services ...@@ -595,7 +595,9 @@ namespace Sieve.Services
IQueryable<TEntity> result) IQueryable<TEntity> result)
{ {
var page = model?.Page ?? 1; var page = model?.Page ?? 1;
model.Page = page;
var pageSize = model?.PageSize ?? _options.Value.DefaultPageSize; var pageSize = model?.PageSize ?? _options.Value.DefaultPageSize;
model.PageSize = pageSize;
var maxPageSize = _options.Value.MaxPageSize > 0 ? _options.Value.MaxPageSize : pageSize; var maxPageSize = _options.Value.MaxPageSize > 0 ? _options.Value.MaxPageSize : pageSize;
if (ResultCountBeForeApplyPagination==0) if (ResultCountBeForeApplyPagination==0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment