//method to use in repo public void GetDataFromLocalizationPointDto(LocalizationPointDto localizationPointDto) { this.Point = localizationPointDto.Point; this.PostalCode = localizationPointDto.PostalCode; this.Region = localizationPointDto.Region; this.District = localizationPointDto.District; this.City = localizationPointDto.City; this.Street = localizationPointDto.Street; this.Number = localizationPointDto.Number; this.StaticScore = localizationPointDto.StaticScore; this.InnerDistance = localizationPointDto.InnerDistance; this.InnerTime = localizationPointDto.InnerTime; this.DynamicScore = localizationPointDto.DynamicScore; this.ParentPointId = localizationPointDto.ParentPointId; }
//method to use in repo public void GetDataFromLocalizationPointDto(LocalizationPointDto localizationPointDto) { //X is longitude, Y is latitude in NetTopologySuite.Geometries.Coordinate Class this.Point = new Point(new Coordinate(localizationPointDto.Point.Coordinates.Longitude, localizationPointDto.Point.Coordinates.Latitude)); this.Point.SRID = 4326; this.PostalCode = localizationPointDto.PostalCode; this.Region = localizationPointDto.Region; this.District = localizationPointDto.District; this.City = localizationPointDto.City; this.Street = localizationPointDto.Street; this.Number = localizationPointDto.Number; this.StaticScore = localizationPointDto.StaticScore; this.InnerDistance = localizationPointDto.InnerDistance; this.InnerTime = localizationPointDto.InnerTime; this.DynamicScore = localizationPointDto.DynamicScore; this.ParentPointId = localizationPointDto.ParentPointId; }