Exemplo n.º 1
0
 public AchievementsController(CouncilDbContext context, ApplicationDbContext contextUser)
 {
     _context     = context;
     _contextUser = contextUser;
 }
Exemplo n.º 2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, CouncilDbContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            app.UseDefaultFiles();
            app.UseStaticFiles();

            app.UseMvc();
            // инициализация базы данных по университетам
            DbInitializer.Initialize(context);
        }
Exemplo n.º 3
0
 public UniversitiesController(CouncilDbContext context)
 {
     _context = context;
 }
 public GridIndicatorsController(CouncilDbContext context)
 {
     _context = context;
 }