예제 #1
0
 public ShoppingCartActions(
     IHttpContextAccessor httpContextAccessor,
     SwimmingClubContext context)
 {
     _httpContextAccessor = httpContextAccessor;
     _context             = context;
 }
예제 #2
0
 public CartItemsController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     SwimmingClubContext context,
     IHttpContextAccessor httpContextAccessor)
 {
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _signInManager       = signInManager;
 }
예제 #3
0
 public ProductsController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     SwimmingClubContext context,
     IHttpContextAccessor httpContextAccessor)
 {
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _signInManager       = signInManager;
     usersShoppingCart    = new ShoppingCartActions(_httpContextAccessor, _context);
 }
예제 #4
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     RoleManager <IdentityRole> RoleManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     ILoggerFactory loggerFactory,
     SwimmingClubContext context,
     IHttpContextAccessor httpContextAccessor)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _RoleManager         = RoleManager;
     _emailSender         = emailSender;
     _smsSender           = smsSender;
     _logger              = loggerFactory.CreateLogger <AccountController>();
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
 }
예제 #5
0
 public SquadsController(SwimmingClubContext context)
 {
     _context = context;
 }
예제 #6
0
파일: Startup.cs 프로젝트: srclay/BWSC
        // 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, SwimmingClubContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

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

            app.UseStaticFiles();

            app.UseIdentity();
            app.UseSession();
            // Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715

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

            DbInitializer.Initalize(context);
        }
예제 #7
0
 public CoachesController(SwimmingClubContext context)
 {
     _context = context;
 }