VB
return await _db.Reports.Select(report => new ReportDto()
{
Id = report.Id,
Name = report.Name,
ReportDate = report.ReportDate,
Items = _db.ReportItems.Where(item => item.ReportId == report.Id)
.Select(item => new ReportItemDto()
{
Id = item.Id,
Name = item.Name,
Price = item.Price,
Amount = item.Amount
}).ToList()
}).ToListAsync();
тут больше вопрос в линке, как получить ReportItems._db.Reports.Select(r => r).ToListAsync()
а вот как теперь сюда подгрузить ReportItems