Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        /// <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)));
        }