Пример #1
0
 public Employee(DB_Liverpool context,
                 UserManager <AppUser> userManager,
                 SignInManager <AppUser> signinManager,
                 RoleManager <IdentityRole> roleManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signinManager = signinManager;
     _roleManager   = roleManager;
 }
Пример #2
0
 public AccountController(DB_Liverpool context,
                          UserManager <AppUser> userManager,
                          SignInManager <AppUser> signinManager,
                          RoleManager <IdentityRole> roleManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signinManager = signinManager;
     _roleManager   = roleManager;
 }
Пример #3
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app,
                              IHostingEnvironment env,
                              DB_Liverpool context,
                              UserManager <AppUser> userManager,
                              RoleManager <IdentityRole> roleManager)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseAuthentication();

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCookiePolicy();

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

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

            DbInitializer.Seed(context, userManager, roleManager, Configuration).Wait();
        }
Пример #4
0
 public CupsController(DB_Liverpool context)
 {
     _context = context;
 }
Пример #5
0
 public VideoController(DB_Liverpool context)
 {
     _context = context;
 }
Пример #6
0
 public TeamController(DB_Liverpool context)
 {
     _context = context;
 }
Пример #7
0
 public DashboardController(DB_Liverpool context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Пример #8
0
 public GalleryController(DB_Liverpool context,
                          IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Пример #9
0
 public StaticDataController(DB_Liverpool context,
                             IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Пример #10
0
 public HomeController(DB_Liverpool context)
 {
     _context = context;
 }
Пример #11
0
 public ContactViewComponent(DB_Liverpool context)
 {
     _context = context;
 }
Пример #12
0
 public MessageController(DB_Liverpool context)
 {
     _context = context;
 }
Пример #13
0
 public FirstTeamController(DB_Liverpool context,
                            IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Пример #14
0
 public AjaxController(DB_Liverpool context,
                       UserManager <AppUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }