public ShoppingCartActions( IHttpContextAccessor httpContextAccessor, SwimmingClubContext context) { _httpContextAccessor = httpContextAccessor; _context = context; }
public CartItemsController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, SwimmingClubContext context, IHttpContextAccessor httpContextAccessor) { _context = context; _httpContextAccessor = httpContextAccessor; _userManager = userManager; _signInManager = signInManager; }
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); }
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; }
public SquadsController(SwimmingClubContext context) { _context = context; }
// 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); }
public CoachesController(SwimmingClubContext context) { _context = context; }