diff --git a/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs b/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs index 9da47a4..a97b11f 100644 --- a/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs +++ b/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs @@ -50,14 +50,12 @@ internal class TableReport }) .OrderBy(x => x.Date); - - // Формируем таблицу для отчета - return new List() { item } // Заголовок + return new List() { item } .Union(buyHorses - .Select(x => new string[] { x.Date.ToString("dd.MM.yyyy"), x.Cost.ToString()! })) // Дата и суммарная стоимость + .Select(x => new string[] { x.Date.ToString("dd.MM.yyyy"), x.Cost.ToString()! })) .Union(new[] { - new string[] { "Всего", buyHorses.Sum(x => x.Cost).ToString()! } // Итоговая строка + new string[] { "Всего", buyHorses.Sum(x => x.Cost).ToString()! } }) .ToList(); }