public void CreateFirstAdvancedStep(int groupId) { GroupsRepo grrepo = new GroupsRepo(); Group group = grrepo.GetById(groupId); CreateBracketsFromGroup(group, 1); db.Add(group); }
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); }