public LatestGamesViewComponent(GamesDataContext data)
 {
     this.data = data;
 }
Beispiel #2
0
        // 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();
        }
Beispiel #3
0
 public InsertsOfAGameViewComponent(GamesDataContext data)
 {
     this.data = data;
 }
Beispiel #4
0
 public GamesController(GamesDataContext data)
 {
     this.data = data;
 }