protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AutoMapperConfig.RegisterMappings(); var db = new TcbcslDbContext(); Consts.PlayerPoolTeamName = db.TeamYears .Single(ty => ty.TeamId == Consts.PlayerPoolTeamId && ty.Year == Consts.CurrentYear) .FullName; }
public ScheduleService(TcbcslDbContext dbContext) { _dbContext = dbContext; }
public ContentService(TcbcslDbContext dbContext) { _db = dbContext; }