public FantasyTeamController() { var context = new FantasyVBDEntities(); FantasyTeamRepo = new FantasyTeamRepository(context); FantasyTeamkMapper = new AutoMapperHelper <List <Models.FantasyTeamModel>, IList <DataAccess.FantasyTeam> >(); }
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> >(); }
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; }