Esempio n. 1
0
 public CartVC(GoodToyesDbContext context, ICart cart, IProduct product, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _cart        = cart;
     _product     = product;
     _userManager = userManager;
 }
Esempio n. 2
0
 public OrderHistoryModel(GoodToyesDbContext context, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IOrder orderService)
 {
     _context       = context;
     _signInManager = signInManager;
     _userManager   = userManager;
     _orderService  = orderService;
 }
Esempio n. 3
0
 public OrderService(SignInManager <ApplicationUser> signInManager, GoodToyesDbContext context)
 {
     _context       = context;
     _signInManager = signInManager;
 }
Esempio n. 4
0
 public ProductManager(GoodToyesDbContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Constructor takes in all necessary context of user profile
 /// </summary>
 /// <param name="context">Database context</param>
 /// <param name="signInManager">Sign in manager interface</param>
 /// <param name="userManager">User manager interface</param>
 public UserProfileModel(GoodToyesDbContext context, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _context       = context;
 }
Esempio n. 6
0
 /// <summary>
 /// Brings in DB
 /// </summary>
 /// <param name="context"></param>
 public CartService(GoodToyesDbContext context)
 {
     _context = context;
 }