// Basket constructor with dependencies
 public BasketsController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, InteriorShoppeDbContext context, IBasket basket, IInventory inventory)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _basket        = basket;
     _inventory     = inventory;
 }
 public CheckoutController(UserManager <ApplicationUser> userManager, InteriorShoppeDbContext context, IBasket basket)
 {
     _userManager = userManager;
     _context     = context;
     _basket      = basket;
 }
 public IndexModel(InteriorShoppeDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public BasketService(InteriorShoppeDbContext context)
 {
     _context = context;
 }
 public InventoryServices(InteriorShoppeDbContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public ShopController(InteriorShoppeDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public BasketComponent(InteriorShoppeDbContext context, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager)
 {
     _context       = context;
     _signInManager = signInManager;
     _userManager   = userManager;
 }