// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, MakuniDbContext makuniDbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseDefaultFiles(); app.UseStaticFiles(); app.UseHttpsRedirection(); app.UseAuthentication(); //vehiclesProjectDbContext.Database.EnsureCreated(); makuniDbContext.Database.EnsureCreated(); app.UseMvc(); }
public TuotteetController(MakuniDbContext makuniDbContext) { _makuniDbContext = makuniDbContext; }
public ArvostelutController(MakuniDbContext makuniDbContext) { _makuniDbContext = makuniDbContext; }