Exemplo n.º 1
0
        public IActionResult Statistics()
        {
            StatLogic statLogic = new StatLogic(leagueLogic, teamLogic, driverLogic);
            Stat      stat      = new Stat();

            //Oldest team drivers stat

            stat.OldestTeamDrivers = statLogic.OldestTeamDrivers();


            stat.MostDriverInTeam = statLogic.MostDriverInTeam();

            /*----------------------------------------------------------------------*/
            //Most popular League and its teams

            stat.TeamsOfBestLeague = statLogic.TeamOfBestLeague();

            /*----------------------------------------------------------------------*/
            //Most used engine type and count

            stat.MostUsedEngine = statLogic.MostUsedEngine();

            return(View(stat));
        }