/// <summary>
 /// Initializes a new instance of the <see cref="ProductsService" /> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="productRepository">The product repository.</param>
 /// <param name="productDescriptionRepository">The product description repository.</param>
 /// <param name="productPhotoRepository">The product photo repository.</param>
 public ProductsService(IMapper mapper, IProductRepository productRepository,
                        IProductDescriptionRepository productDescriptionRepository, IProductPhotoRepository productPhotoRepository)
 {
     _mapper                       = mapper;
     _productRepository            = productRepository;
     _productDescriptionRepository = productDescriptionRepository;
     _productPhotoRepository       = productPhotoRepository;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductManagingService" /> class.
 /// </summary>
 /// <param name="productRepository">The product repository.</param>
 /// <param name="productDescriptionRepository">The product description repository.</param>
 /// <param name="productPhotoRepository">The product photo repository.</param>
 /// <param name="productTransactions">The product transactions.</param>
 /// <param name="cultureRepository">The culture repository.</param>
 /// <param name="productProductPhotoRepository">The product product photo repository.</param>
 /// <param name="mapper">The mapper.</param>
 public ProductManagingService(IProductRepository productRepository, IProductDescriptionRepository productDescriptionRepository,
                               IProductPhotoRepository productPhotoRepository, IProductTransactions productTransactions, ICultureRepository cultureRepository,
                               IProductProductPhotoRepository productProductPhotoRepository, IMapper mapper)
 {
     _productRepository             = productRepository;
     _mapper                        = mapper;
     _productProductPhotoRepository = productProductPhotoRepository;
     _cultureRepository             = cultureRepository;
     _productDescriptionRepository  = productDescriptionRepository;
     _productPhotoRepository        = productPhotoRepository;
     _productTransactions           = productTransactions;
 }
Esempio n. 3
0
 public AdminController(IUserRepository userRepository,
                        IOrderRepository orderRepository,
                        IMessageRepository messageRepository,
                        IProductRepository productRepository,
                        ICategoryRepository categoryRepository,
                        ICompanyRepository companyRepository,
                        IProductPhotoRepository productPhotoRepository)
 {
     this._userRepository         = userRepository;
     this._orderRepository        = orderRepository;
     this._messageRepository      = messageRepository;
     this._productRepository      = productRepository;
     this._categoryRepository     = categoryRepository;
     this._companyRepository      = companyRepository;
     this._productPhotoRepository = productPhotoRepository;
 }
Esempio n. 4
0
 public ProductPhotoService(
     ILogger <IProductPhotoRepository> logger,
     IProductPhotoRepository productPhotoRepository,
     IApiProductPhotoRequestModelValidator productPhotoModelValidator,
     IBOLProductPhotoMapper bolproductPhotoMapper,
     IDALProductPhotoMapper dalproductPhotoMapper,
     IBOLProductProductPhotoMapper bolProductProductPhotoMapper,
     IDALProductProductPhotoMapper dalProductProductPhotoMapper)
     : base(logger,
            productPhotoRepository,
            productPhotoModelValidator,
            bolproductPhotoMapper,
            dalproductPhotoMapper,
            bolProductProductPhotoMapper,
            dalProductProductPhotoMapper)
 {
 }
Esempio n. 5
0
 public AbstractProductPhotoService(
     ILogger logger,
     IProductPhotoRepository productPhotoRepository,
     IApiProductPhotoRequestModelValidator productPhotoModelValidator,
     IBOLProductPhotoMapper bolProductPhotoMapper,
     IDALProductPhotoMapper dalProductPhotoMapper,
     IBOLProductProductPhotoMapper bolProductProductPhotoMapper,
     IDALProductProductPhotoMapper dalProductProductPhotoMapper)
     : base()
 {
     this.ProductPhotoRepository       = productPhotoRepository;
     this.ProductPhotoModelValidator   = productPhotoModelValidator;
     this.BolProductPhotoMapper        = bolProductPhotoMapper;
     this.DalProductPhotoMapper        = dalProductPhotoMapper;
     this.BolProductProductPhotoMapper = bolProductProductPhotoMapper;
     this.DalProductProductPhotoMapper = dalProductProductPhotoMapper;
     this.logger = logger;
 }
 public HomeController(ITopCategoryRepository topRepo, IProductRepository productRepo, IErrorLogRepository errorRepo, IHttpContextAccessor httpContextAccessor, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IFavoriteProductRepository fpRepo, ICustomerRepository customerRepo, IBrandRepository brandRepo, IMapper mapper, IWebHostEnvironment environment, IProductPhotoRepository photoRepo, IAdminRepository adminRepo, IAdProductRepository adproRepo, IContactUsRepository contactRepo, IEmailNewsletterRepository newsRepo, IFavoriteProductRepository favRepo, IMiniSliderRepository miniRepo, ISliderRepository sliderRepo)
 {
     _topRepo             = topRepo;
     _productRepo         = productRepo;
     _errorRepo           = errorRepo;
     _httpContextAccessor = httpContextAccessor;
     _midRepo             = midRepo;
     _subRepo             = subRepo;
     _fpRepo       = fpRepo;
     _customerRepo = customerRepo;
     _brandRepo    = brandRepo;
     _mapper       = mapper;
     _environment  = environment;
     _photoRepo    = photoRepo;
     _adminRepo    = adminRepo;
     _adproRepo    = adproRepo;
     _contactRepo  = contactRepo;
     _newsRepo     = newsRepo;
     _favRepo      = favRepo;
     _miniRepo     = miniRepo;
     _sliderRepo   = sliderRepo;
 }
 public AbstractApiProductPhotoRequestModelValidator(IProductPhotoRepository productPhotoRepository)
 {
     this.productPhotoRepository = productPhotoRepository;
 }
 public ApiProductPhotoRequestModelValidator(IProductPhotoRepository productPhotoRepository)
     : base(productPhotoRepository)
 {
 }
Esempio n. 9
0
 public ProductPhotoManager(IProductPhotoRepository iProductPhotoRepository) : base(iProductPhotoRepository)
 {
     _iProductPhotoRepository = iProductPhotoRepository;
 }
 public ProductPhotoBs(IProductPhotoRepository repo)
 {
     _repo = repo;
 }