public LatestGamesViewComponent(GamesDataContext data) { this.data = data; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, FeatureToggles features, GamesDataContext db) { app.UseExceptionHandler("/error.html"); if (features.DeveloperExceptions) { app.UseDeveloperExceptionPage(); } //db.Database.EnsureCreated(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); app.UseFileServer(); }
public InsertsOfAGameViewComponent(GamesDataContext data) { this.data = data; }
public GamesController(GamesDataContext data) { this.data = data; }