Beispiel #1
0
        public IActionResult GetLadder(Guid competitionId)
        {
            var competition = GetById(competitionId);

            if (competition == null)
            {
                return(BadRequest());
            }

            var teams      = Context.CompetitionsTeams.Where(o => o.Competition == competition).Select(c => c.Team).ToList();
            var resultRows = FixtureHelper.BuildLadder(competition, teams);

            return(Ok(resultRows));
        }