Esempio 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, WKContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
                app.UseDatabaseErrorPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            app.UseAuthentication();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "areaRoute",
                    template: "{area:exists}/{controller=Maintain}/{action=Index}/{id?}");

                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });

            DbInitializer.Initialize(context);
        }
Esempio n. 2
0
 public KnockoutController(WKContext context)
 {
     _context = context;
 }
Esempio n. 3
0
 public ToernooiOpvuller(WKContext context)
 {
     _context = context;
 }
Esempio n. 4
0
 public WedstrijdController(WKContext context)
 {
     _context = context;
 }
Esempio n. 5
0
 public ToernooiSimulator(WKContext context)
 {
     _context  = context;
     _random   = new Random();
     _opvuller = new ToernooiOpvuller(_context);
 }
Esempio n. 6
0
 public SimulatieController(WKContext context)
 {
     _context   = context;
     _simulator = new ToernooiSimulator(_context);
 }
Esempio n. 7
0
 public PouleController(WKContext context)
 {
     _context = context;
 }
Esempio n. 8
0
 public SpelerController(WKContext context)
 {
     _context = context;
 }