Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductController"/> class.
 /// </summary>
 /// <param name="productCreationService">The <see cref="IProductCreationService"/> dependency.</param>
 /// <param name="productEditService">The <see cref="IProductEditService"/> dependency.</param>
 /// <param name="productFilterService">The <see cref="IProductFilterService"/> dependency.</param>
 /// <param name="observerManager">The <see cref="IObserverManager"/> dependency.</param>
 public ProductController(
     IProductCreationService productCreationService,
     IProductEditService productEditService,
     IProductFilterService productFilterService,
     IObserverManager observerManager)
 {
     this.productEditService     = productEditService;
     this.productCreationService = productCreationService;
     this.filterService          = productFilterService;
     this.observerManager        = observerManager;
 }
 public ProductsController(ApplicationDbContext context, IProductService service, IProductFilterService filterService)
 {
     _context       = context;
     _service       = service;
     _filterService = filterService;
 }
 public TagFilterService(IUnitOfWork uow, IProductFilterService productFilterService)
 {
     unitOfWork            = uow;
     _productFilterService = productFilterService;
 }
Exemple #4
0
 public CategoryBaseController(IProductService productService, IProductFilterService productFilterService, ICategoryService categoryService)
 {
     _productService       = productService;
     _productFilterService = productFilterService;
     _categoryService      = categoryService;
 }
Exemple #5
0
 public ProductService(ApplicationDbContext dbContext, IProductFilterService filterService)
 {
     DatabaseContext = dbContext;
     FilterService   = filterService;
 }
Exemple #6
0
 public ProductFilterController(IProductFilterService productFilterService)
 {
     this.productFilterService = productFilterService;
 }
 public DesignerFilterService(IUnitOfWork uow, IProductFilterService productFilterService, ICategoryService catService)
 {
     unitOfWork            = uow;
     _productFilterService = productFilterService;
     _categoryService      = catService;
 }
Exemple #8
0
 public SearchController(ISampleService serv, ICategoryService categoryService, IProductFilterService productFilterService)
 {
     _productFilterService = productFilterService;
     _categoryService      = categoryService;
 }