Exemple #1
0
        public virtual CultureInfo GetCurrentLanguage()
        {
            CultureInfo cultureInfo;

            return(TryGetLanguage(_cookieService.Get(LanguageCookie), out cultureInfo)
                ? cultureInfo
                : CurrentMarket.DefaultLanguage);
        }
Exemple #2
0
        public virtual Currency GetCurrentCurrency()
        {
            Currency currency;

            return(TryGetCurrency(_cookieService.Get(CurrencyCookie), out currency) ?
                   currency :
                   CurrentMarket.DefaultCurrency);
        }
Exemple #3
0
        public IMarket GetCurrentMarket()
        {
            var _currentMarket = _cookieService.Get(MarketCookie);

            if (string.IsNullOrEmpty(_currentMarket))
            {
                _currentMarket = DefaultMarketId.Value;
            }
            return(GetMarket(new MarketId(_currentMarket)));
        }
        public IMarket GetCurrentMarket()
        {
            var market = _cookieService.Get(MarketCookie);

            if (market == null)
            {
                market = DefaultMarketId.Value;
            }
            return(GetMarket(new MarketId(market)));
        }