diff --git a/ProjectGSM/Documents/TableReport.cs b/ProjectGSM/Documents/TableReport.cs index 74a64f1..2d8d36a 100644 --- a/ProjectGSM/Documents/TableReport.cs +++ b/ProjectGSM/Documents/TableReport.cs @@ -49,9 +49,7 @@ internal class TableReport private List GetData(int caseId, DateTime startDate, DateTime endDate) { var statusData = _statusHistoryRepository - .ReadStatusHistories() - // .ReadStatusHistories(startDate, endDate, caseId) - .Where(x => x.CreatedAt >= startDate && x.CreatedAt <= endDate && x.CaseId == caseId) + .ReadStatusHistories(startDate, endDate, caseId) .GroupBy(x => (x.Status, x.CreatedAt.Date)) .Select(x => new {