Esempio n. 1
0
        public FantasyTeamController()
        {
            var context = new FantasyVBDEntities();

            FantasyTeamRepo    = new FantasyTeamRepository(context);
            FantasyTeamkMapper = new AutoMapperHelper <List <Models.FantasyTeamModel>, IList <DataAccess.FantasyTeam> >();
        }
Esempio n. 2
0
        public ByeWeekController()
        {
            var context = new FantasyVBDEntities();

            TeamByeWeekRepo = new TeamByeWeekRepository(context);
            LeagueYearRepo  = new LeagueYearRepository(context);
            ByeWeekMapper   = new AutoMapperHelper <List <Models.ByeWeekModel>, IList <DataAccess.TeamByeWeek> >();
        }
 public PlayerController()
 {
     Context              = new FantasyVBDEntities();
     PlayerRepository     = new PlayerProjectionRepository(Context);
     LeagueYearRepository = new LeagueYearRepository(Context);
     DraftPickRepository  = new DraftPickRepository(Context);
     PlayerMapper         = new AutoMapperHelper <List <Models.PlayerProjection>, IList <DataAccess.PlayerProjection> >();
 }
Esempio n. 4
0
        public DraftPickController()
        {
            var context = new FantasyVBDEntities();

            DraftPickRepo            = new DraftPickRepository(context);
            LeagueYearRepo           = new LeagueYearRepository(context);
            LeagueYearDraftOrderRepo = new LeagueYearDraftOrderRepository(context);
            TradeRepo        = new TradeRepository(context);
            DraftPickkMapper = new AutoMapperHelper <List <Models.DraftPickModel>, IList <DataAccess.DraftPick> >();
            numberOfRounds   = 16;
        }