public GeoIPManager() { _geoIpRepository = new GeoIPRepository(); ObjectMapper.Bind <GeoIPCountry, GeoIPCountryBo>((source, target) => target.IPFrom = source.IPFrom); ObjectMapper.Bind <GeoIPCountryBo, GeoIPCountryDto>((source, target) => target.CountryName = source.CountryName, (source, target) => target.CountryCode = source.CountryCode); ObjectMapper.Bind <GeoIPCityBo, GeoIPCityDto>((source, target) => target.CountryCode = source.CountryCode); }
public GeoIPRepository() { ObjectMapper.Bind <GeoIPCity, GeoIPCityBo>((source, target) => target.LocationId = source.LocationId, (source, target) => target.CityName = source.CityName); }