Example #1
0
 public DrinkController(ICategoryRepo categoryRepo, IDrinkRepo drinkRepo)
 {
     _categoryRepo = categoryRepo;
     _drinkRepo    = drinkRepo;
 }
 public ShoppingCartController(IDrinkRepo drinkRepository, ShoppingCart shoppingCart)
 {
     _drinkRepository = drinkRepository;
     _shoppingCart    = shoppingCart;
 }
Example #3
0
 public HomeController(IDrinkRepo drinkRepository)
 {
     _drinkRepository = drinkRepository;
 }
Example #4
0
 public HomeController(ILogger <HomeController> logger, IDrinkRepo drinkRepo, IOrderRepo orderRepo)
 {
     _logger    = logger;
     _drinkRepo = drinkRepo;
     _orderRepo = orderRepo;
 }