Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 public HomeController(IRobotoRepo repo)
 {
     _repo = repo;
 }
Exemplo n.º 5
0
        //private readonly ICheckoutRepo _checkoutRepo;

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