Ejemplo n.º 1
0
        //----------------------------------------------------------------------------------------------------------------------------
        //NON CRUD

        public IActionResult Stat()
        {
            Stat s = new Stat();

            s.LegnagyobbLiga      = statLogic.LegNagyobbLiga();
            s.MaxRatingJatekos    = statLogic.MaxRatedPlayer();
            s.JatekosokSzama      = statLogic.PlayerCount(playerlogic.GetAllPlayers().ToList());
            s.LeagueCount         = statLogic.LeagueCount();
            s.AvgRatingLeaguename = statLogic.TeamAVGPlayer(/*playerlogic.GetAllPlayers().ToList(),teamlogic.GetAllTeam().ToList()*/);
            s.FilteredPlayers     = statLogic.FilterPlayers("Juventus");
            s.WeakFootTeam        = statLogic.BESTWEAKFOOTSUMBYTEAM();

            return(View(s));
        }