示例#1
0
        /// <summary>
        /// Gets the configuration, based on the country cookie
        /// </summary>
        public static Market GetCurrentMarket(HttpContextBase context)
        {
            var countryCode = GlobalUtilities.GetSelectedCountryCode(context);

            return(GetMarket(countryCode));
        }
        /// <summary>
        /// Gets the configuration, based on the country cookie
        /// </summary>
        public static Market GetCurrentMarket()
        {
            var countryCode = GlobalUtilities.GetSelectedCountryCode();

            return(GlobalSettings.Markets.AvailableMarkets.FirstOrDefault(c => c.Countries.Contains(countryCode)));
        }