public CustomCakesController(ICustomCakeService customCakeService, ICakeService cakeService, IErrorService errorService, ILogger <CustomCakesController> logger) { this.customCakeService = customCakeService; this.cakeService = cakeService; this.errorService = errorService; this.logger = logger; }
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; }
public BakeryController(ICakeService cakeService) // Dependency Injection { _cakeService = cakeService; }
public HomeController(ICakeService service) { _service = service; }
ICakeService _cakeService; //Injection objeckt public BakeryController(ICakeService cakeService) { _cakeService = cakeService; }
public CakeController(ICakeService cakeService, ICategoryRepository repo) { _cakeService = cakeService; _repo = repo; }
public HomeController(ICakeService service) =>
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; }