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; }
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; }