public ByeWeekController() { var context = new FantasyVBDEntities(); TeamByeWeekRepo = new TeamByeWeekRepository(context); LeagueYearRepo = new LeagueYearRepository(context); ByeWeekMapper = new AutoMapperHelper <List <Models.ByeWeekModel>, IList <DataAccess.TeamByeWeek> >(); }
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; }