public AchievementsController(CouncilDbContext context, ApplicationDbContext contextUser) { _context = context; _contextUser = contextUser; }
// 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); }
public UniversitiesController(CouncilDbContext context) { _context = context; }
public GridIndicatorsController(CouncilDbContext context) { _context = context; }