// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, HookNetWorkDbContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); app.UseMvc(); HookNetWorkDbInitializer.Initialize(context); }
public LanguageComparisonController(HookNetWorkDbContext dbContext) { LCDal = new LanguageComparisonDal(dbContext); }
public LanguageComparisonDal(HookNetWorkDbContext _dbContext) { this.dbContext = _dbContext; }