public ShoppingCartController(ICakeRepository cakerepository, ShoppingCart shoppingCart)
 {
     _cakerepository = cakerepository;
     _shoppingCart   = shoppingCart;
 }
Example #2
0
 public AuthController(IAuthRepository repo, IConfiguration config, ICakeRepository cakeRepo)
 {
     _config   = config;
     _repo     = repo;
     _cakeRepo = cakeRepo;
 }
Example #3
0
 // get an icakerepository as in input to constructor
 public HomeController(ICakeRepository cakeRepository)
 {
     _cakeRepository = cakeRepository;
 }
Example #4
0
 public ColumnsController(ICakeRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
 public ShoppingCartController(IPieRepository pieRepository, ICakeRepository cakeRepository, ShoppingCart shoppingCart)
 {
     _pieRepository  = pieRepository;
     _cakeRepository = cakeRepository;
     _shoppingCart   = shoppingCart;
 }
Example #6
0
 public NavigationController(ICakeRepository cakeRepo)
 {
     cakeRepository = cakeRepo;
 }
Example #7
0
 public BasketController(ICakeRepository repo, IOrderProcessor processor)
 {
     repository     = repo;
     orderProcessor = processor;
 }
Example #8
0
 public ShoppingCartController(ICakeRepository cakeRepository, Cart cart)
 {
     this.cakeRepository = cakeRepository;
     this.cart           = cart;
 }
 public HomeController(AppDbContext context, ICategoryRepository categoryRepository, ICakeRepository cakeRepository)
 {
     this.context            = context;
     this.categoryRepository = categoryRepository;
     this.cakeRepository     = cakeRepository;
 }
 public ShoppingCartController(ICakeRepository cakeRepository, IShoppingCartService shoppingCart)
 {
     _cakeRepository = cakeRepository;
     _shoppingCart   = shoppingCart;
 }
Example #11
0
 public CakeController(ICakeRepository CakeRepository, ICategoryRepository categoryRepository, IWebHostEnvironment webHostEnvironment)
 {
     _CakeRepository     = CakeRepository;
     _categoryRepository = categoryRepository;
     _webHostEnvironment = webHostEnvironment;
 }
Example #12
0
 public DefaultController(ICakeRepository cakeRepository, IShoppingCartService shoppingCart, IOrderRepository orderRepository)
 {
     _cakeRepository  = cakeRepository;
     _shoppingCart    = shoppingCart;
     _orderRepository = orderRepository;
 }
Example #13
0
 public CakeService(ICakeRepository cakeRepository)
 {
     _cakeRepository = cakeRepository;
 }
 public CakeController(ICakeRepository cakeRepository)
 {
     this.cakeRepository = cakeRepository;
 }
 public HomeController(ICakeRepository cakeRepository, IVisitRepository visitRepository)
 {
     this.cakeRepository  = cakeRepository;
     this.visitRepository = visitRepository;
 }
 public CakeController(ICakeRepository cakeRepository, IRatingRepository ratingRepository, ICategoryRepository categoryRepository)
 {
     _cakeRepository     = cakeRepository;
     _ratingRepository   = ratingRepository;
     _categoryRepository = categoryRepository;
 }
Example #17
0
 public HomeController(ICakeRepository cakeRepository, IGalleryRepository galleryRepository)
 {
     _cakeRepository    = cakeRepository;
     _galleryRepository = galleryRepository;
 }
 public CakesController(ICakeRepository cakeRepo,
                        IUnitOfWork unitOfWork)
 {
     _cakeRepo   = cakeRepo;
     _unitOfWork = unitOfWork;
 }
 public CakeController(ICakeRepository cakeRepository, ICategoryRepository categoryRepository)
 {
     this.cakeRepository    = cakeRepository;
     this.categoryRepoitory = categoryRepository;
 }
Example #20
0
 public CakeController(ICakeRepository cakerepo, ICategoryRepository categoryrepo)
 {
     _CakeRepository     = cakerepo;
     _CategoryRepository = categoryrepo;
 }
 public async Task <Cake> LoadCake(ICakeRepository cakeRepository)
 {
     return(await cakeRepository.GetCakeById(CakeId));
 }
Example #22
0
 public CakeController(ICakeRepository repository)
 {
     cakeRepository = repository;
 }
Example #23
0
 public AdminController(ICakeRepository repository)
 {
     cakeRepository = repository;
 }
 public CakeListModel(ICakeRepository cakeRepository)
 {
     this.cakeRepository = cakeRepository;
 }
 public EditModel(ICakeRepository cakeRepository)
 {
     this.cakeRepository = cakeRepository;
 }
 public ShoppingCartController(ICakeRepository cakeRepository,
                               IShoppingCartRepository shoppingCartRepository)
 {
     _cakeRepository         = cakeRepository;
     _shoppingCartRepository = shoppingCartRepository;
 }
 public AdminController(ICoffeeRepository coffeeRepository, ICakeRepository cakeRepository, IDrinksRepository drinksRepository)
 {
     _coffeeRepository = coffeeRepository;
     _cakeRepository   = cakeRepository;
     _drinksRepository = drinksRepository;
 }
 public HomeController(ILogger <HomeController> logger, IPieRepository pieRepository, ICakeRepository cakeRepository)
 {
     _pieRepository  = pieRepository;
     _logger         = logger;
     _cakeRepository = cakeRepository;
 }
Example #29
0
 public CakeController(ICakeRepository cakeRepository, ICategoryRepository categoryRepository)
 {
     _cakeRepository     = cakeRepository;
     _categoryRepository = categoryRepository;
 }
Example #30
0
 public HomeController(ICakeRepository CakeRepository)
 {
     _cakeRespository = CakeRepository;
 }