0👍
You might be comparing Int value with some kind of object. Your item
variable contains AttendanceID
only and you are comparing this value to student
object.
You may need to change your condition like this
repartitions.Add(students.Count(x=>x.Attendances.Select(o => o.AttendanceID.Equals(item)));
- Chartjs-Uncaught TypeError: fn is not a function in chart.js
- Chartjs-With Chart js, I am trying to color every 7th vertical (x axis) grid line (representing each week beginning visually)
Source:stackexchange.com