Esempio n. 1
0
 /// <summary>
 /// bring in the information from the data layer for the inventory and basket information
 /// </summary>
 /// <param name="robotoRepo"></param>
 /// <param name="configuration"></param>
 /// <param name="basketRepo"></param>
 /// <param name="userManager"></param>
 public ShoppingCart(IRobotoRepo robotoRepo, IConfiguration configuration, IBasketRepo basketRepo,
                     UserManager <ApplicationUser> userManager)
 {
     _robotoRepo   = robotoRepo;
     _basketRepo   = basketRepo;
     _userManager  = userManager;
     Configuration = configuration;
 }
Esempio n. 2
0
 public ShopController(IRobotoRepo robotoRepo, IConfiguration configuration,
                       IBasketRepo basketRepo, IOrderRepo orderRepo, UserManager <ApplicationUser> userManager)
 {
     _robotoRepo   = robotoRepo;
     _basketRepo   = basketRepo;
     _orderRepo    = orderRepo;
     _userManager  = userManager;
     Configuration = configuration;
 }
 /// <summary>
 /// Bring in the information from the data layer for products, basket,
 /// checkout, emailSender
 /// </summary>
 /// <param name="robotoRepo"></param>
 /// <param name="configuration"></param>
 /// <param name="basketRepo"></param>
 /// <param name="orderRepo"></param>
 /// <param name="emailSender"></param>
 /// <param name="userManager"></param>
 public CheckoutController(IRobotoRepo robotoRepo, IConfiguration configuration,
                           IBasketRepo basketRepo, IOrderRepo orderRepo,
                           IEmailSender emailSender, UserManager <ApplicationUser> userManager)
 {
     _robotoRepo   = robotoRepo;
     _basketRepo   = basketRepo;
     _orderRepo    = orderRepo;
     _userManager  = userManager;
     _emailSender  = emailSender;
     Configuration = configuration;
 }
Esempio n. 4
0
 public HomeController(IRobotoRepo repo)
 {
     _repo = repo;
 }
Esempio n. 5
0
        //private readonly ICheckoutRepo _checkoutRepo;

        public AdminController(IRobotoRepo robotoRepo, IConfiguration configuration, IOrderRepo orderRepo)
        {
            _robotoRepo   = robotoRepo;
            _orderRepo    = orderRepo;
            Configuration = configuration;
        }