ПИбд-23. Кадышев М.И. Лабораторная работа 4 #4

Closed
nezui wants to merge 3 commits from LabWork_4 into LabWork_3
Showing only changes of commit 660d0d6e41 - Show all commits

View File

@ -42,8 +42,7 @@ internal class ChartReport
private List<(string Caption, double Value)> GetData(DateTime dateTime, int accessoriesId)
{
return _orderRepository
.ReadOrder()
.Where(x => x.Date.Date == dateTime.Date && x.AccessoiresOrders.Any(y => y.AccessoriesId == accessoriesId))
.ReadOrder(dateTo: dateTime.Date.AddDays(1), accessoriesId: accessoriesId)
.GroupBy(x => x.Id, (key, group) => new
{
Id = key,
@ -52,4 +51,5 @@ internal class ChartReport
.Select(x => (x.Id.ToString(), (double)x.Count))
.ToList();
}
}