Example #1
0
        public SchedulingService()
        {
            DataEntities db = new DataEntities();

            leagueRepo   = new LeagueRepo(db);
            stagesRepo   = new StagesRepo(db);
            groupesRepo  = new GroupsRepo(db);
            gamesRepo    = new GamesRepo(db);
            bracketsRepo = new BracketsRepo(db, gamesRepo);
            teamsRepo    = new TeamsRepo(db);
        }
Example #2
0
 private void InitPrivates()
 {
     bracketsRepo = new BracketsRepo(db, this);
     tRepo        = new TeamsRepo(db);
     _gameCycles  = db.GamesCycles.Include(t => t.HomeTeam)
                    .Include(t => t.GuestTeam)
                    .Include(t => t.Auditorium)
                    .Include(t => t.User)
                    .Include(t => t.Stage)
                    .Include(t => t.Group)
                    .Include(t => t.Group.Stage.League.Games)
                    .Include(t => t.HomeTeam.TeamsDetails)
                    .Include(t => t.GuestTeam.TeamsDetails);
 }