public ProductRepository(IPromotionProductRelationRepository promotionProductRelationRepository , ISpecialTopicProductRelationRepository specialTopicProductRelationRepository , IUserAuthRepository userAuthRepo) { _specialTopicProductRelationRepository = specialTopicProductRelationRepository; _promotionProductRelationRepository = promotionProductRelationRepository; _userAuthRepo = userAuthRepo; }
protected BaseMappingManager() { _resourceRepository = ServiceLocator.Current.Resolve<IResourceRepository>(); _pprRepository = ServiceLocator.Current.Resolve<IPromotionProductRelationRepository>(); _stprRepository = ServiceLocator.Current.Resolve<ISpecialTopicProductRelationRepository>(); _storeRepository = ServiceLocator.Current.Resolve<IStoreRepository>(); _tagRepository = ServiceLocator.Current.Resolve<ITagRepository>(); _specialTopicRepository = ServiceLocator.Current.Resolve<ISpecialTopicRepository>(); _promotionRepository = ServiceLocator.Current.Resolve<IPromotionRepository>(); _brandRepository = ServiceLocator.Current.Resolve<IBrandRepository>(); _customerRepository = ServiceLocator.Current.Resolve<ICustomerRepository>(); _productRepository = ServiceLocator.Current.Resolve<IProductRepository>(); }
public ProductController(IProductRepository productRepository , ISpecialTopicProductRelationRepository specialTopicProductRelationRepository , IPromotionProductRelationRepository promotionProductRelationRepository , IStoreRepository storeRepository , IResourceService resourceService , IUserAuthRepository userAuthRepo) { _productRepository = productRepository; _stprRepository = specialTopicProductRelationRepository; _pprRepository = promotionProductRelationRepository; _storeRepository = storeRepository; _resourceService = resourceService; _userAuthRepo = userAuthRepo; }
public ProductController(IProductRepository productRepository , ISpecialTopicProductRelationRepository specialTopicProductRelationRepository , IPromotionProductRelationRepository promotionProductRelationRepository , IStoreRepository storeRepository , IResourceService resourceService , IUserAuthRepository userAuthRepo) { _productRepository = productRepository; _stprRepository = specialTopicProductRelationRepository; _pprRepository = promotionProductRelationRepository; _storeRepository = storeRepository; _resourceService = resourceService; _userAuthRepo = userAuthRepo; }