Beispiel #1
0
        public ActionResult <IEnumerable <Standings> > OverallStandings()
        {
            List <Standings> standings            = new List <Standings>();
            List <Standings> standingsDynamically = new List <Standings>();

            standingsDynamically.AddRange(_StandingsRepository.playersInStandings());
            var allPredictions = _repository.GetAllPredictions().OrderBy(y => y.DateOfPrediction);
            var allRealCases   = _RealCasesRepository.GetAllRealCases().OrderBy(x => x.DateOfRealCases);

            var viewStand = populateStandings(standingsDynamically, allPredictions, allRealCases);

            return(View(viewStand));
        }