Esempio n. 1
0
        // 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);
 }
Esempio n. 3
0
 public LanguageComparisonDal(HookNetWorkDbContext _dbContext)
 {
     this.dbContext = _dbContext;
 }