diff --git a/Projects/SesNotifications.App/Pages/FindRaw.cshtml.cs b/Projects/SesNotifications.App/Pages/FindRaw.cshtml.cs index bcc35b0..860e828 100644 --- a/Projects/SesNotifications.App/Pages/FindRaw.cshtml.cs +++ b/Projects/SesNotifications.App/Pages/FindRaw.cshtml.cs @@ -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); diff --git a/Projects/SesNotifications.App/Services/Interfaces/ISearchService.cs b/Projects/SesNotifications.App/Services/Interfaces/ISearchService.cs index f7e12b5..9564470 100644 --- a/Projects/SesNotifications.App/Services/Interfaces/ISearchService.cs +++ b/Projects/SesNotifications.App/Services/Interfaces/ISearchService.cs @@ -18,7 +18,7 @@ public interface ISearchService IList FindComplaintEvents(string email, DateTime start, DateTime end); IList FindRaw(DateTime start, DateTime end); IList 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); } } \ No newline at end of file diff --git a/Projects/SesNotifications.App/Services/SearchService.cs b/Projects/SesNotifications.App/Services/SearchService.cs index fabcf6c..a29ef58 100644 --- a/Projects/SesNotifications.App/Services/SearchService.cs +++ b/Projects/SesNotifications.App/Services/SearchService.cs @@ -111,7 +111,7 @@ public IList 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); }