Ejemplo n.º 1
0
        public ProductService(AppDbContext dbContext,
                              ILocalizedEntityService localizedEntityService,
                              IProductDownloadsLogService productDownloadsLogService,
                              IUserLikesService userLikesService,
                              IUserWishlistService userWishlistService,
                              IUserGroupsService userGroupsService,
                              IPostCategoriesService categoriesService,
                              IProductDiscountsForUserGroupsService productDiscountsForUserGroupsService,
                              IProductCheckoutAttributesService productCheckoutAttributesService,
                              ILocalizationService localizationService,
                              IUsersService usersService,
                              IEventPublisher eventPublisher) : base(dbContext,
                                                                     localizedEntityService,
                                                                     userLikesService,
                                                                     userWishlistService,
                                                                     categoriesService,
                                                                     eventPublisher)
        {
            _dbContext = dbContext;
            _productDownloadsLogService           = productDownloadsLogService;
            _userGroupsService                    = userGroupsService;
            _categoriesService                    = categoriesService;
            _productDiscountsForUserGroupsService = productDiscountsForUserGroupsService;
            _productCheckoutAttributesService     = productCheckoutAttributesService;
            _localizationService                  = localizationService;
            _usersService = usersService;

            _cacheKey = nameof(TblProducts);
        }
Ejemplo n.º 2
0
 public DownloadController(
     IProductService productService,
     IFileServersService fileServersService,
     ILocalizationService localizationService,
     IProductCheckoutAttributesService productCheckoutAttributesService,
     IProductDiscountsForUserGroupsService productDiscountsForUserGroupsService,
     IProductDownloadsLogService downloadsLogService)
 {
     _productService      = productService;
     _fileServersService  = fileServersService;
     _localizationService = localizationService;
     _productCheckoutAttributesService     = productCheckoutAttributesService;
     _productDiscountsForUserGroupsService = productDiscountsForUserGroupsService;
     _downloadsLogService = downloadsLogService;
 }