Ejemplo n.º 1
0
 public ProductAppService(
     IManagementUnitOfWork unitOfWork,
     IFileHelper fileHelper, IProductPropertyRepository productPropertyRepository, TenantType tenantType = TenantType.WebService
     ) : base(unitOfWork, tenantType)
 {
     _fileHelper = fileHelper;
     _productPropertyRepository = productPropertyRepository;
 }
Ejemplo n.º 2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context        = context;
     Products        = new ProductRepository(_context);
     ComputerTypes   = new ComputerTypeRepository(_context);
     Brands          = new BrandRepository(_context);
     ProductQuantity = new ProductQuantityRepository(_context);
     ProductProperty = new ProductPropertyRepository(_context);
 }
Ejemplo n.º 3
0
 public ManagementUnitOfWork(
     DbContext context,
     IdentityDbContext <ApplicationUser> appContext,
     ILinkRepository linkRepository,
     IPageRepository pageRepository,
     ITenantRepository tenantRepository,
     IEronFileRepository fileRepository,
     IBannerSliderRepository bannerSliderRepository,
     IOfferRepository offerRepository,
     IInvoiceRepository invoiceRepository,
     IInvoiceItemRepository invoiceItemRepository,
     IInvoiceLogRepository invoiceLogRepository,
     IWishListRepository wishListRepository,
     ICartRepository cartRepository,
     IOrderRepository orderRepository,
     ITariffRepository tariffRepository,
     ITariffPriceRepository tariffPriceRepository,
     ITariffItemRepository tariffItemRepository,
     IProductRepository productRepository,
     IProductPriceRepository productPriceRepository,
     IProductPropertyRepository productPropertyRepository,
     IProductPropertyNameRepository productPropertyNameRepository,
     IProductCategoryRepository productCategoryRepository,
     IServiceReviewRepository serviceReviewRepository,
     ITariffCategoryRepository tariffCategoryRepository, IFinanceTransactionRepository financeTransactionRepository, IBlogRepository blogRepository, IBlogArchiveRepository blogArchiveRepository, ICommentRepository commentRepository, ILikeRepository likeRepository, IHashTagRepository hashTagRepository) : base(context)
 {
     AppContext                    = appContext;
     LinkRepository                = linkRepository;
     PageRepository                = pageRepository;
     TenantRepository              = tenantRepository;
     FileRepository                = fileRepository;
     BannerSliderRepository        = bannerSliderRepository;
     OfferRepository               = offerRepository;
     InvoiceRepository             = invoiceRepository;
     InvoiceItemRepository         = invoiceItemRepository;
     InvoiceLogRepository          = invoiceLogRepository;
     WishListRepository            = wishListRepository;
     CartRepository                = cartRepository;
     OrderRepository               = orderRepository;
     TariffRepository              = tariffRepository;
     TariffPriceRepository         = tariffPriceRepository;
     TariffItemRepository          = tariffItemRepository;
     ProductRepository             = productRepository;
     ProductPriceRepository        = productPriceRepository;
     ProductPropertyRepository     = productPropertyRepository;
     ProductPropertyNameRepository = productPropertyNameRepository;
     ProductCategoryRepository     = productCategoryRepository;
     ServiceReviewRepository       = serviceReviewRepository;
     TariffCategoryRepository      = tariffCategoryRepository;
     FinanceTransactionRepository  = financeTransactionRepository;
     BlogRepository                = blogRepository;
     BlogArchiveRepository         = blogArchiveRepository;
     CommentRepository             = commentRepository;
     LikeRepository                = likeRepository;
     HashTagRepository             = hashTagRepository;
 }
 public ProductPropertyValueController(ITagRepository tagRepo,
     ICategoryPropertyRepository tagpropertyRepo,
     ICategoryPropertyValueRepository tagpropertyvalRepo,
     IProductPropertyValueRepository prodpropertyvalRepo,
     IProductPropertyRepository prodpropertyRepo,
     IProductRepository prodRepo,
     IUserAuthRepository userauthRepo
 )
 {
     _tagRepo = tagRepo;
     _tagpropertyRepo = tagpropertyRepo;
     _tagpropertyvalueRepo = tagpropertyvalRepo;
     _prodpropertyRepo = prodpropertyRepo;
     _prodpropertyvalRepo = prodpropertyvalRepo;
     _prodRepo = prodRepo;
     _userauthRepo = userauthRepo;
 }
Ejemplo n.º 5
0
 public ProductDataService(IPromotionDataService promotionDataService, IPromotionService promotionService,
     ICouponService couponService, IResourceService resourceService, IProductRepository productRepository,
     IShareService shareService, IFavoriteService favoriteService, ICouponDataService couponDataService,
     IPromotionRepository promotionRepo,
     IProductPropertyRepository productpropertyRepo,
     IProductPropertyValueRepository productpropertyvalueRepo,
     IProductCode2StoreCodeRepository productcodemapRepo)
 {
     _promotionDataService = promotionDataService;
     _productRepository = productRepository;
     _shareService = shareService;
     _favoriteService = favoriteService;
     _couponDataService = couponDataService;
     _resourceService = resourceService;
     _couponService = couponService;
     _promotionService = promotionService;
     _promotionRepo = promotionRepo;
     _productpropertyRepo = productpropertyRepo;
     _productpropertyvalueRepo = productpropertyvalueRepo;
     _productcodemapRepo = productcodemapRepo;
 }