@foreach (var side in new[] { "top", "left", "bottom" })
{
var supporting = Model.Cast.Where(x => x.CharacterImportance >= 4 && x.CharacterImportance < 8).ToList();
var cast = side == "top" ? Model.Cast.Where(x => x.CharacterImportance >= 8)
: side == "bottom" ? Model.Cast.Where(x => (x.CharacterImportance ?? 0) < 4)
: supporting;
@if (side == "left")
{
@:
}
}
The renderer could not load. Character details and the relationship list remain available.