fix(api): убрана функция отключения пагинации

This commit is contained in:
Mikhail Kuznetsov
2024-03-12 15:31:03 +10:00
parent 27b051a987
commit aab96a2b08
3 changed files with 7 additions and 7 deletions

View File

@@ -54,9 +54,9 @@
}
}
/// <summary>
/// Выключить пагинацию
/// </summary>
public bool IsDisabledPagination { get; set; } = false;
///// <summary>
///// Выключить пагинацию
///// </summary>
//public bool IsDisabledPagination { get; set; } = false;
}
}

View File

@@ -5,6 +5,6 @@
public int PageNumber { get; set; }
public int PageSize { get; set; }
public bool IsDisabledPagination { get; set; }
//public bool IsDisabledPagination { get; set; }
}
}

View File

@@ -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;