Last active
August 10, 2017 12:43
-
-
Save adamhopkinson/8036875 to your computer and use it in GitHub Desktop.
C# Globablisation - getting the market instance from the visitors' origin country (via GeoIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var market = MarketInfo.Markets.SingleOrDefault(m => m.Code == Visitor.CountryCode); | |
if (market == null) | |
market = Visitor.Market; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment