Пример #1
0
 public CustomCakesController(ICustomCakeService customCakeService, ICakeService cakeService, IErrorService errorService, ILogger <CustomCakesController> logger)
 {
     this.customCakeService = customCakeService;
     this.cakeService       = cakeService;
     this.errorService      = errorService;
     this.logger            = logger;
 }
Пример #2
0
 public OrdersController(ILogger <OrdersController> logger,
                         IOrderService orderService,
                         ICartService cartService, IOrderDetailsService orderDetailsService, IErrorService errorService, ICakeService cakeService, IEmailService emailService)
 {
     this.logger              = logger;
     this.orderService        = orderService;
     this.cartService         = cartService;
     this.orderDetailsService = orderDetailsService;
     this.errorService        = errorService;
     this.cakeService         = cakeService;
     this.emailService        = emailService;
 }
Пример #3
0
 public BakeryController(ICakeService cakeService) // Dependency Injection
 {
     _cakeService = cakeService;
 }
Пример #4
0
 public HomeController(ICakeService service)
 {
     _service = service;
 }
Пример #5
0
        ICakeService _cakeService;             //Injection objeckt

        public BakeryController(ICakeService cakeService)
        {
            _cakeService = cakeService;
        }
Пример #6
0
 public CakeController(ICakeService cakeService, ICategoryRepository repo)
 {
     _cakeService = cakeService;
     _repo        = repo;
 }
Пример #7
0
 public HomeController(ICakeService service) =>
Пример #8
0
 public CakesController(ILogger <CakesController> logger, ICakeService cakeService, IErrorService errorService)
 {
     this.logger       = logger;
     this.cakeService  = cakeService;
     this.errorService = errorService;
 }
 public ShoppingCartController(ICakeService service, ShoppingCart shoppingCart)
 {
     _service      = service;
     _shoppingCart = shoppingCart;
 }
 public CakesController(ICakeService cakeService)
 {
     _cakeService = cakeService;
 }