Refactor TeamScheduler, easier to read and maintain
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user