Example #1
0
        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;
        }
Example #2
0
 public ScheduleService(TcbcslDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #3
0
 public ContentService(TcbcslDbContext dbContext)
 {
     _db = dbContext;
 }