Refactor TeamScheduler, easier to read and maintain

This commit is contained in:
2025-12-01 06:58:56 -05:00
parent 69dd517d73
commit 3461f94854
7 changed files with 160 additions and 49 deletions
@@ -1,5 +1,5 @@
@using Core.Entities
@model Tuple<Core.Entities.Team, List<Tuple<Student, IEnumerable<Team>>>, string[]?>
@model Tuple<Core.Entities.Team, List<(Student student, IEnumerable<Team> teams)>, string[]?>
@{
var team = Model.Item1;
@@ -36,7 +36,7 @@
{
first = false;
}
@if (overlaps.Any(t => t.Item1 == student))
@if (overlaps.Any(t => t.student == student))
{
<span style="color: #F66">@student.FirstName</span>
}