public CartVC(GoodToyesDbContext context, ICart cart, IProduct product, UserManager <ApplicationUser> userManager) { _context = context; _cart = cart; _product = product; _userManager = userManager; }
public OrderHistoryModel(GoodToyesDbContext context, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IOrder orderService) { _context = context; _signInManager = signInManager; _userManager = userManager; _orderService = orderService; }
public OrderService(SignInManager <ApplicationUser> signInManager, GoodToyesDbContext context) { _context = context; _signInManager = signInManager; }
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; }
/// <summary> /// Brings in DB /// </summary> /// <param name="context"></param> public CartService(GoodToyesDbContext context) { _context = context; }