Пример #1
0
 public HomeController(PickupContext context)
 {
     _context = context;
 }
Пример #2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, PickupContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();


            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

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

            DbInitializer.Initialize(context);
        }
Пример #3
0
 public PlayersController(PickupContext context)
 {
     _context = context;
 }
Пример #4
0
 public PickupHub(PickupContext _context, UserManager <IdentityUser> umngr)
 {
     context  = _context;
     uManager = umngr;
 }
Пример #5
0
 public MatchController(PickupContext _context)
 {
     context = _context;
 }
Пример #6
0
 public GamesController(PickupContext context)
 {
     _context = context;
 }
Пример #7
0
 public SportsController(PickupContext context)
 {
     _context = context;
 }