diff --git a/ProjectLibrary/ProjectLibrary/Reports/ChartReport.cs b/ProjectLibrary/ProjectLibrary/Reports/ChartReport.cs index d1b19d1..6d2bcbd 100644 --- a/ProjectLibrary/ProjectLibrary/Reports/ChartReport.cs +++ b/ProjectLibrary/ProjectLibrary/Reports/ChartReport.cs @@ -34,19 +34,16 @@ internal class ChartReport private List<(string Caption, double Value)> GetData(DateTime dateTime) { - // Количество выдач книг за день var issueCount = _issueRepository .ReadIssue() .Where(x => x.IssueDate.Date == dateTime.Date) .SelectMany(x => x.BookIssue) .Count(); - // Количество реставраций книг за день var restorationCount = _bookRestorationRepository .ReadBookRestorations() .Count(x => x.RestorationDate.Date == dateTime.Date); - // Формируем данные для диаграммы return new List<(string Caption, double Value)> { ("Выдачи", issueCount), diff --git a/ProjectLibrary/ProjectLibrary/Reports/TableReport.cs b/ProjectLibrary/ProjectLibrary/Reports/TableReport.cs index 933a38f..573fb67 100644 --- a/ProjectLibrary/ProjectLibrary/Reports/TableReport.cs +++ b/ProjectLibrary/ProjectLibrary/Reports/TableReport.cs @@ -76,7 +76,7 @@ internal class TableReport .Select(group => new { Librarian = librarian.Name, - Count = group.Count(), // Суммируем количество реставраций за день + Count = group.Count(), Description = "Реставрации", Date = group.Key.RestorationDate.ToString("dd.MM.yyyy") });