Ejemplo 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, 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();
        }
Ejemplo n.º 2
0
 public TuotteetController(MakuniDbContext makuniDbContext)
 {
     _makuniDbContext = makuniDbContext;
 }
Ejemplo n.º 3
0
 public ArvostelutController(MakuniDbContext makuniDbContext)
 {
     _makuniDbContext = makuniDbContext;
 }