Example #1
0
        public void CreateFirstAdvancedStep(int groupId)
        {
            GroupsRepo grrepo = new GroupsRepo();
            Group      group  = grrepo.GetById(groupId);

            CreateBracketsFromGroup(group, 1);
            db.Add(group);
        }
Example #2
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);
        }