Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Nov 22, 2024
1 parent e639a56 commit 7ca3c8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public async Task<PagedList<TodoDto>> Handle(GetTodoListRequest request, Cancell
{
ArgumentNullException.ThrowIfNull(request);

var spec = new EntitiesByPaginationFilterSpec<TodoItem, TodoDto>(request.filter);
var spec = new EntitiesByPaginationFilterSpec<TodoItem, TodoDto>(request.Filter);

var items = await repository.ListAsync(spec, cancellationToken).ConfigureAwait(false);
var totalCount = await repository.CountAsync(spec, cancellationToken).ConfigureAwait(false);

return new PagedList<TodoDto>(items, request.filter.PageNumber, request.filter.PageSize, totalCount);
return new PagedList<TodoDto>(items, request.Filter.PageNumber, request.Filter.PageSize, totalCount);
}
}

0 comments on commit 7ca3c8b

Please sign in to comment.