コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="userManager">The user manager.</param>
 /// <param name="signInManager">The sign in manager.</param>
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, BearMountainDbContext context, IEmailSender email)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _email         = email;
 }
コード例 #2
0
 public CheckoutController(BearMountainDbContext context, IInventory product, ICart cart, IEmailSender email)
 {
     _context = context;
     _cart    = cart;
     _product = product;
     _email   = email;
 }
コード例 #3
0
ファイル: CartService.cs プロジェクト: riedmank/BearMountain
 public CartService(BearMountainDbContext context)
 {
     _context = context;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InventoryService"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public InventoryService(BearMountainDbContext context)
 {
     _context = context;
 }
コード例 #5
0
ファイル: ItemsInCart.cs プロジェクト: riedmank/BearMountain
 public ItemsInCart(BearMountainDbContext context)
 {
     _context = context;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InventoryController"/> class.
 /// </summary>
 /// <param name="product">The product.</param>
 public InventoryController(IInventory product, ICart cart, BearMountainDbContext context)
 {
     _product = product;
     _cart    = cart;
     _context = context;
 }