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