Пример #1
0
		public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_keyManagementService = keyManagementService;
		}
Пример #2
0
 public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                        IProductManagementService productManagementService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _keyManagementService     = keyManagementService;
 }
Пример #3
0
        public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService)
        {
            _serializationProvider = serializationProvider;
            _controlService = controlService;
            _productManagementService = productManagementService;
            _masterService = masterService;
        }
 public ProductManagementWrapperProduct(IProductManagementService productManagementService,
                                        IUrlHelper url,
                                        HttpRequest request,
                                        HttpResponse response,
                                        ILogger logger)
     : base(productManagementService, url, request, response, logger)
 {
     _dtoMapper = new MapperConfig().Mapper;
 }
Пример #5
0
 public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                      IProductManagementService productManagementService, IMasterService masterService, ICommonService commonService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _masterService            = masterService;
     _commonService            = commonService;
 }
Пример #6
0
		public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_masterService = masterService;
			_activationLogService = activationLogService;
			_keyManagementService = keyManagementService;
		}
Пример #7
0
 public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                         IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _masterService            = masterService;
     _activationLogService     = activationLogService;
     _keyManagementService     = keyManagementService;
 }
Пример #8
0
 public ProductManagementController(
     IProductManagementService productManagement,
     IMapper mapper,
     IWorkContext workContext,
     IInventoryManagementService invManagement)
 {
     _productMangement = productManagement;
     _mapper           = mapper;
     _workContext      = workContext;
     _invManagement    = invManagement;
 }
Пример #9
0
 public ProductManagementWrapper(IProductManagementService productManagementService,
                                 IUrlHelper url,
                                 HttpRequest request,
                                 HttpResponse response,
                                 ILogger logger)
 {
     _productManagementService = productManagementService;
     _url      = url;
     _request  = request;
     _response = response;
     _logger   = logger;
 }
Пример #10
0
 public AssetManagementController(
     IAssetManagementService assetService,
     IProductManagementService productMangement,
     ICostCenterService costCenterService,
     IMapper mapper,
     IWorkContext workContext
     )
 {
     _assetService      = assetService;
     _productMangement  = productMangement;
     _costCenterService = costCenterService;
     _mapper            = mapper;
     _workContext       = workContext;
 }
Пример #11
0
 public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
                          IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
                          IActivationLogService activationLogService, IMasterService masterService, ICommonService commonService, IProductManagementService productManagementService)
 {
     _controlService               = controlService;
     _keyService                   = keyService;
     _keyPairService               = keyPairService;
     _serializationProvider        = serializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
     _activationLogService         = activationLogService;
     _masterService                = masterService;
     _commonService                = commonService;
     _productManagementService     = productManagementService;
 }
Пример #12
0
		public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
			IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
			IActivationLogService activationLogService, IMasterService masterService, ICommonService commonService, IProductManagementService productManagementService)
		{
			_controlService = controlService;
			_keyService = keyService;
			_keyPairService = keyPairService;
			_serializationProvider = serializationProvider;
			_asymmetricEncryptionProvider = asymmetricEncryptionProvider;
			_activationLogService = activationLogService;
			_masterService = masterService;
			_commonService = commonService;
			_productManagementService = productManagementService;
		}
 public SelectItemsController(
     ICostCenterService costCenterService,
     ISelectItemsServices selectItemsServices,
     IProductManagementService productManagementService,
     IWorkContext workContext,
     IFinancialDataService financialDataService,
     IRfqService rfqService,
     IRepository <Orders> orderRepository)
 {
     _costCenterService        = costCenterService;
     _selectItemsServices      = selectItemsServices;
     _productManagementService = productManagementService;
     _workContext          = workContext;
     _financialDataService = financialDataService;
     _rfqService           = rfqService;
     _orderRepository      = orderRepository;
 }
Пример #14
0
 public InventoryManagementController(
     IInventoryManagementService invManagement,
     IWorkContext workContext,
     ISelectItemsServices selectItemsServices,
     IProductManagementService productManagementService,
     ICostCenterService costCenterService,
     IMapper mapper,
     IRfqService rfqService,
     IFinancialManagementService financialManagementService)
 {
     _invManagement            = invManagement;
     _workContext              = workContext;
     _selectItemService        = selectItemsServices;
     _productManagementService = productManagementService;
     _costCenterService        = costCenterService;
     _mapper     = mapper;
     _rfqService = rfqService;
     _financialManagementService = financialManagementService;
 }
Пример #15
0
 public ProductExportService(ProductDBContext productContext, IProductManagementService productManagementService)
 {
     _productContext           = productContext;
     _productManagementService = productManagementService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductsController"/> class.
 /// </summary>
 /// <param name="productManagementService">IProductManagementService.</param>
 public ProductsController(IProductManagementService productManagementService)
 {
     this.productManagementService = productManagementService ?? throw new ArgumentNullException(nameof(productManagementService));
 }
 public ProductDataController()
 {
     _productManagementService = new ProductManagementService();
 }
Пример #18
0
 public ProductsController(IProductManagementService productManagementService)
 {
     this.productManagementService = productManagementService;
 }
Пример #19
0
 public ProductController(IProductManagementService businessService,
                          ILogger <ProductController> logger)
 {
     _businessService = businessService;
     _logger          = logger;
 }
 public ProductController(IProductManagementService productManagementService)
 {
     _productManagementService = productManagementService;
 }
        public async Task <ActionResult <int> > CreateLinkToProductForArticle(int blogArticleId, int productId, [FromServices] IProductManagementService productManagementService)
        {
            if (blogArticleId <= 0 ||
                productId <= 0 ||
                productManagementService is null ||
                !(this.bloggingService.TryShowBlogArticle(blogArticleId, out _) &&
                  productManagementService.TryShowProduct(productId, out _)))
            {
                return(this.BadRequest());
            }

            return(await this.bloggingService.CreateLinkToProductForArticleAsync(blogArticleId, productId));
        }