public DashboardController(IRepository <CampaignCategoriesRecord> campaignCategoryRepository,
                                   IRepository <LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository,
                                   ICampaignService campaignService,
                                   IMailChimpSettingsService settingsService,
                                   IOrderService orderService,
                                   IWorkContextAccessor wca,
                                   IStoreService storeService,
                                   IimageHelper imageHelper,
                                   IMembershipService membershipService,
                                   IPayoutService payoutService,
                                   IOrchardServices services,
                                   IContentManager contentManager,
                                   IPromotionService promotionService,
                                   IPaymentInformationService paymentInfService,
                                   ICampaignCategoriesService campaignCategoryService,
                                   IRepository <CurrencyRecord> currencyRepository,
                                   IMessageService messageService,
                                   ITShirtCostService tshirtService,
                                   IProductService productService,
                                   INotifier notifier,
                                   ICookieCultureService cookieCultureService,
                                   ITeeyootMessagingService teeyootMessagingService,
                                   IWorkContextAccessor workContextAccessor,
                                   ITShirtCostService costService,
                                   IPriceConversionService priceConversionService,
                                   IRepository <TeeyootUserPart> users
                                   )
        {
            _campaignCategoryRepository        = campaignCategoryRepository;
            _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository;
            _cookieCultureService = cookieCultureService;
            _campaignService      = campaignService;
            _currencyRepository   = currencyRepository;
            _orderService         = orderService;
            _wca = wca;
            this._settingsService    = settingsService;
            this._orderService       = orderService;
            _storeService            = storeService;
            _imageHelper             = imageHelper;
            _membershipService       = membershipService;
            _contentManager          = contentManager;
            _payoutService           = payoutService;
            _promotionService        = promotionService;
            _campaignCategoryService = campaignCategoryService;
            _paymentInfService       = paymentInfService;
            _messageService          = messageService;
            _tshirtService           = tshirtService;
            _productService          = productService;
            _notifier = notifier;
            _teeyootMessagingService = teeyootMessagingService;
            Services                = services;
            _costService            = costService;
            Logger                  = NullLogger.Instance;
            _priceConversionService = priceConversionService;
            _users                  = users;

            _workContextAccessor = workContextAccessor;
            culture     = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
示例#2
0
        public AdminCampaignsSettingsController(
            IRepository <CampaignStatusRecord> campaignStatusRepository,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IimageHelper imageHelper,
            ITeeyootMessagingService teeyootMessagingService,
            INotifier notifier,
            IRepository <ProductColorRecord> repositoryColor,
            ShellSettings shellSettings,
            IRepository <CurrencyRecord> currencyRepository,
            IRepository <UserPartRecord> users)
        {
            _campaignStatusRepository = campaignStatusRepository;
            _campaignService          = campaignService;
            _imageHelper             = imageHelper;
            _teeyootMessagingService = teeyootMessagingService;
            _currencyRepository      = currencyRepository;

            Shape            = shapeFactory;
            T                = NullLocalizer.Instance;
            Logger           = NullLogger.Instance;
            _notifier        = notifier;
            _repositoryColor = repositoryColor;
            _users           = users;
            _shellSettings   = shellSettings;
        }
示例#3
0
        public DashboardController(IRepository<CampaignCategoriesRecord> campaignCategoryRepository,
                                   IRepository<LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository,
                                   ICampaignService campaignService,
                                   IMailChimpSettingsService settingsService,
                                   IOrderService orderService,
                                   IWorkContextAccessor wca,
                                   IStoreService storeService,
                                   IimageHelper imageHelper,
                                   IMembershipService membershipService,
                                   IPayoutService payoutService,
                                   IOrchardServices services,
                                   IContentManager contentManager,
                                   IPromotionService promotionService,
                                   IPaymentInformationService paymentInfService,
                                   ICampaignCategoriesService campaignCategoryService,
                                   IRepository<CurrencyRecord> currencyRepository,
                                   IMessageService messageService,
                                   ITShirtCostService tshirtService,
                                   IProductService productService,
                                   INotifier notifier,
                                   ICookieCultureService cookieCultureService,
                                   ITeeyootMessagingService teeyootMessagingService,
                                   IWorkContextAccessor workContextAccessor
                                    )
        {
            _campaignCategoryRepository = campaignCategoryRepository;
            _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository;
            _cookieCultureService = cookieCultureService;
            _campaignService = campaignService;
            _currencyRepository = currencyRepository;
            _orderService = orderService;
            _wca = wca;
            this._settingsService = settingsService;
            this._orderService = orderService;
            _storeService = storeService;
            _imageHelper = imageHelper;
            _membershipService = membershipService;
            _contentManager = contentManager;
            _payoutService = payoutService;
            _promotionService = promotionService;
            _campaignCategoryService = campaignCategoryService;
            _paymentInfService = paymentInfService;
            _messageService = messageService;
            _tshirtService = tshirtService;
            _productService = productService;
            _notifier = notifier;
            _teeyootMessagingService = teeyootMessagingService;
            Services = services;

            Logger = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
            culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
示例#4
0
        public HomeController(
            IOrderService orderService,
            ICampaignService campaignService,
            INotifier notifier,
            IPromotionService promotionService,
            IimageHelper imageHelper,
            IPaymentSettingsService paymentSettingsService,
            IShapeFactory shapeFactory,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor,
            IRepository<UserRolesPartRecord> userRolesPartRepository,
            IRepository<TeeyootUserPartRecord> userRepository,
            IPayoutService payoutService,
            IRepository<CommonSettingsRecord> commonSettingsRepository,
            IRepository<CheckoutCampaignRequest> checkoutRequestRepository,
            ICookieCultureService cookieCultureService,
            IRepository<OrderStatusRecord> orderStatusRepository,
            ICountryService countryService,
            IRepository<CountryRecord> countryRepository,
            IRepository<DeliverySettingRecord> deliverySettingRepository,
            IRepository<DeliveryInternationalSettingRecord> deliveryInternationalSettingRepository,
            IRepository<CurrencyExchangeRecord> currencyExchangeRepository)
        {
            _orderService = orderService;
            _promotionService = promotionService;
            _campaignService = campaignService;
            _imageHelper = imageHelper;
            _userRolesPartRepository = userRolesPartRepository;
            _payoutService = payoutService;
            _teeyootMessagingService = teeyootMessagingService;
            _paymentSettingsService = paymentSettingsService;
            _commonSettingsRepository = commonSettingsRepository;
            _checkoutRequestRepository = checkoutRequestRepository;
            _userRepository = userRepository;
            _orderStatusRepository = orderStatusRepository;
            _countryRepository = countryRepository;
            _deliverySettingRepository = deliverySettingRepository;
            _deliveryInternationalSettingRepository = deliveryInternationalSettingRepository;
            _currencyExchangeRepository = currencyExchangeRepository;

            Logger = NullLogger.Instance;
            _notifier = notifier;
            T = NullLocalizer.Instance;
            Shape = shapeFactory;

            //var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            _cultureUsed = workContextAccessor.GetContext().CurrentCulture.Trim();
            //culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _cookieCultureService = cookieCultureService;
            _countryService = countryService;
        }
示例#5
0
        public AdminExportPrintsController(ICampaignService campaignService, ISiteService siteService, IShapeFactory shapeFactory, IOrderService orderService, IimageHelper imageHelper, IFontService fontService, IWorkContextAccessor workContextAccessor)
        {
            _campaignService = campaignService;
            _siteService     = siteService;
            _imageHelper     = imageHelper;
            _orderService    = orderService;
            _fontService     = fontService;

            Shape  = shapeFactory;
            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
        }
        public AdminExportPrintsController(ICampaignService campaignService, ISiteService siteService, IShapeFactory shapeFactory, IOrderService orderService, IimageHelper imageHelper, IFontService fontService, IWorkContextAccessor workContextAccessor)
        {
            _campaignService = campaignService;
            _siteService = siteService;
            _imageHelper = imageHelper;
            _orderService = orderService;
            _fontService = fontService;

            Shape = shapeFactory;
            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
        }
示例#7
0
        public ProductController(
            ISiteService siteService,
            IOrchardServices orchardServices,
            IShapeFactory shapeFactory,
            IRepository <ProductRecord> productRepository,
            IRepository <ProductColorRecord> productColourRepository,
            IRepository <LinkProductColorRecord> linkProductColorRepository,
            IRepository <ProductGroupRecord> productGroupRepository,
            IRepository <LinkProductGroupRecord> linkProductGroupRepository,
            IRepository <ProductHeadlineRecord> productHeadlineRepository,
            IRepository <ProductImageRecord> productImageRepository,
            IRepository <ProductSizeRecord> productSizeRepository,
            IRepository <LinkProductSizeRecord> linkProductSizeRepository,
            IimageHelper imageHelper,
            IWorkContextAccessor workContextAccessor)
        {
            _siteService     = siteService;
            _orchardServices = orchardServices;

            _productRepository          = productRepository;
            _productColourRepository    = productColourRepository;
            _linkProductColorRepository = linkProductColorRepository;
            _productGroupRepository     = productGroupRepository;
            _linkProductGroupRepository = linkProductGroupRepository;
            _productHeadlineRepository  = productHeadlineRepository;
            _productImageRepository     = productImageRepository;
            _productSizeRepository      = productSizeRepository;
            _linkProductSizeRepository  = linkProductSizeRepository;

            _imageHelper = imageHelper;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            Shape = shapeFactory;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();

            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
示例#8
0
        public ProductController(
            ISiteService siteService,
            IOrchardServices orchardServices,
            IShapeFactory shapeFactory,
            IRepository<ProductRecord> productRepository,
            IRepository<ProductColorRecord> productColourRepository,
            IRepository<LinkProductColorRecord> linkProductColorRepository,
            IRepository<ProductGroupRecord> productGroupRepository,
            IRepository<LinkProductGroupRecord> linkProductGroupRepository,
            IRepository<ProductHeadlineRecord> productHeadlineRepository,
            IRepository<ProductImageRecord> productImageRepository,
            IRepository<ProductSizeRecord> productSizeRepository,
            IRepository<LinkProductSizeRecord> linkProductSizeRepository,
            IimageHelper imageHelper,
            IWorkContextAccessor workContextAccessor)
        {
            _siteService = siteService;
            _orchardServices = orchardServices;

            _productRepository = productRepository;
            _productColourRepository = productColourRepository;
            _linkProductColorRepository = linkProductColorRepository;
            _productGroupRepository = productGroupRepository;
            _linkProductGroupRepository = linkProductGroupRepository;
            _productHeadlineRepository = productHeadlineRepository;
            _productImageRepository = productImageRepository;
            _productSizeRepository = productSizeRepository;
            _linkProductSizeRepository = linkProductSizeRepository;

            _imageHelper = imageHelper;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            Shape = shapeFactory;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
示例#9
0
        public WizardController(IOrchardServices orchardServices, ICampaignService campaignService, IimageHelper imageHelper, IFontService fontService, IProductService productService, ISwatchService swatchService, ITShirtCostService costService, ITeeyootMessagingService teeyootMessagingService, IRepository<CommonSettingsRecord> commonSettingsRepository, IRepository<ArtRecord> artRepository, IRepository<CheckoutCampaignRequest> checkoutCampaignRequestRepository, ShellSettings shellSettings, IWorkContextAccessor workContextAccessor, IRepository<CurrencyRecord> currencyRepository)
        {
            _orchardServices = orchardServices;
            _campaignService = campaignService;
            _imageHelper = imageHelper;
            _fontService = fontService;
            _productService = productService;
            _swatchService = swatchService;
            Logger = NullLogger.Instance;
            _costService = costService;
            _teeyootMessagingService = teeyootMessagingService;
            _commonSettingsRepository = commonSettingsRepository;
            _checkoutCampaignRequestRepository = checkoutCampaignRequestRepository;
            _shellSettings = shellSettings;
            T = NullLocalizer.Instance;
            _artRepository = artRepository;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _currencyRepository = currencyRepository;
        }
示例#10
0
        public WizardController(
            IOrchardServices orchardServices,
            ICampaignService campaignService,
            IimageHelper imageHelper,
            IFontService fontService,
            IProductService productService,
            ISwatchService swatchService,
            ITShirtCostService costService,
            ITeeyootMessagingService teeyootMessagingService,
            IRepository <CommonSettingsRecord> commonSettingsRepository,
            IRepository <ArtRecord> artRepository,
            IRepository <CheckoutCampaignRequest> checkoutCampaignRequestRepository,
            ShellSettings shellSettings,
            IWorkContextAccessor workContextAccessor,
            IRepository <CurrencyRecord> currencyRepository,
            IPriceConversionService priceConversionService)
        {
            _orchardServices                   = orchardServices;
            _campaignService                   = campaignService;
            _imageHelper                       = imageHelper;
            _fontService                       = fontService;
            _productService                    = productService;
            _swatchService                     = swatchService;
            Logger                             = NullLogger.Instance;
            _costService                       = costService;
            _teeyootMessagingService           = teeyootMessagingService;
            _commonSettingsRepository          = commonSettingsRepository;
            _checkoutCampaignRequestRepository = checkoutCampaignRequestRepository;
            _shellSettings                     = shellSettings;
            T = NullLocalizer.Instance;
            _artRepository = artRepository;

            var culture = workContextAccessor.GetContext().CurrentCulture.Trim();

            _cultureUsed            = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _currencyRepository     = currencyRepository;
            _priceConversionService = priceConversionService;
        }
        public AdminCampaignsSettingsController(
            IRepository<CampaignStatusRecord> campaignStatusRepository,
            ICampaignService campaignService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IimageHelper imageHelper,
            IOrderService orderService,
            IContentManager contentManager,
            ITeeyootMessagingService teeyootMessagingService,
            INotifier notifier,
            IRepository<ProductColorRecord> repositoryColor,
            IWorkContextAccessor workContextAccessor,
            ShellSettings shellSettings,
            IRepository<CurrencyRecord> currencyRepository)
        {
            _campaignStatusRepository = campaignStatusRepository;
            _campaignService = campaignService;
            _siteService = siteService;
            _imageHelper = imageHelper;
            _contentManager = contentManager;
            _teeyootMessagingService = teeyootMessagingService;
            _orderService = orderService;
            _currencyRepository = currencyRepository;

            Shape = shapeFactory;
            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
            _notifier = notifier;
            _repositoryColor = repositoryColor;

            _shellSettings = shellSettings;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            _cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }