コード例 #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;
 }
コード例 #2
0
 public ProductsController(ApplicationDbContext context, IProductService service, IProductFilterService filterService)
 {
     _context       = context;
     _service       = service;
     _filterService = filterService;
 }
コード例 #3
0
 public TagFilterService(IUnitOfWork uow, IProductFilterService productFilterService)
 {
     unitOfWork            = uow;
     _productFilterService = productFilterService;
 }
コード例 #4
0
 public CategoryBaseController(IProductService productService, IProductFilterService productFilterService, ICategoryService categoryService)
 {
     _productService       = productService;
     _productFilterService = productFilterService;
     _categoryService      = categoryService;
 }
コード例 #5
0
 public ProductService(ApplicationDbContext dbContext, IProductFilterService filterService)
 {
     DatabaseContext = dbContext;
     FilterService   = filterService;
 }
コード例 #6
0
 public ProductFilterController(IProductFilterService productFilterService)
 {
     this.productFilterService = productFilterService;
 }
コード例 #7
0
 public DesignerFilterService(IUnitOfWork uow, IProductFilterService productFilterService, ICategoryService catService)
 {
     unitOfWork            = uow;
     _productFilterService = productFilterService;
     _categoryService      = catService;
 }
コード例 #8
0
 public SearchController(ISampleService serv, ICategoryService categoryService, IProductFilterService productFilterService)
 {
     _productFilterService = productFilterService;
     _categoryService      = categoryService;
 }