Skip to content

Commit

Permalink
Fixed paging issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
n.bitounis committed Jun 6, 2020
1 parent bf59577 commit 9f84d2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Projects/SesNotifications.App/Pages/FindRaw.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public FindRawModel(ISearchService searchService)

protected override void Search()
{
var countOfResults = _searchService.Count(Input.Start.StartOfDay(), Input.End.StartOfDay());
var countOfResults = _searchService.FindRawCount(Input.Start.StartOfDay(), Input.End.EndOfDay());

Raw = _searchService.FindRaw(Input.Start.StartOfDay(), Input.End.EndOfDay(), null, 0, PageSize);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface ISearchService
IList<SesComplaintEvent> FindComplaintEvents(string email, DateTime start, DateTime end);
IList<SesNotification> FindRaw(DateTime start, DateTime end);
IList<SesNotification> FindRaw(DateTime start, DateTime end, long? firstId, int page, int pageSize);
int Count(DateTime start, DateTime end);
int FindRawCount(DateTime start, DateTime end);
SesNotification FindRaw(long id);
}
}
2 changes: 1 addition & 1 deletion Projects/SesNotifications.App/Services/SearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public IList<SesNotification> FindRaw(DateTime start, DateTime end, long? firstI
return _notificationsRepository.FindById(start, end, firstId, page, pageSize);
}

public int Count(DateTime start, DateTime end)
public int FindRawCount(DateTime start, DateTime end)
{
return _notificationsRepository.Count(start, end);
}
Expand Down

0 comments on commit 9f84d2c

Please sign in to comment.