public DestModels.City Translate(SourceModels.CountryFeature feature, DestModels.Region parent) { if (!feature.IsCity) return null; var record = new DestModels.City(); record.DisplayName = feature.Name; record.RegionID = parent.ID; record.Latitude = feature.Latitude; record.Longitude = feature.Longitude; record.Population = (uint)feature.Population; record.GeoNameID = feature.GeoNameID; return record; }
public DestModels.City ToCity(DestModels.Region parent) { if (!this.IsCity) return null; var record = new DestModels.City(); return record; }