fix(api): убрана функция отключения пагинации
This commit is contained in:
@@ -54,9 +54,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Выключить пагинацию
|
||||
/// </summary>
|
||||
public bool IsDisabledPagination { get; set; } = false;
|
||||
///// <summary>
|
||||
///// Выключить пагинацию
|
||||
///// </summary>
|
||||
//public bool IsDisabledPagination { get; set; } = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
public int PageNumber { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
|
||||
public bool IsDisabledPagination { get; set; }
|
||||
//public bool IsDisabledPagination { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,8 +112,8 @@ namespace PARR.DAL.Services.Abstracts
|
||||
|
||||
public virtual IQueryable<T> GetPage(IQueryable<T> query, PaginationFilter paginationFilter)
|
||||
{
|
||||
if (paginationFilter.IsDisabledPagination)
|
||||
return query;
|
||||
//if (paginationFilter.IsDisabledPagination)
|
||||
// return query;
|
||||
|
||||
|
||||
int skip = (paginationFilter.PageNumber - 1) * paginationFilter.PageSize;
|
||||
|
||||
Reference in New Issue
Block a user