Skip to content

Commit c9d404a

Browse files
committed
improve naming of variable
1 parent ead5d5b commit c9d404a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NorthwindCRUD/Services/PagingService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ public PagedResultDto<TDto> FetchPagedData<TEntity, TDto>(
3434
int? size = null,
3535
string? orderBy = null)
3636
{
37-
// Determine if we're using skip/top or page/size
38-
bool isPageSize = pageIndex.HasValue || size.HasValue;
37+
// Determine if we're using skip/top or pageIndex/size
38+
bool isPageIndexAndSize = pageIndex.HasValue || size.HasValue;
3939

4040
int totalRecords = query.Count();
4141

4242
// Default values if not provided
4343
int skipRecordsAmount = skip ?? 0;
4444
int currentSize = top ?? totalRecords;
4545

46-
if (isPageSize)
46+
if (isPageIndexAndSize)
4747
{
4848
int pageNumber = pageIndex ?? 0;
4949
int pageSize = size ?? totalRecords;

0 commit comments

Comments
 (0)