Beispiel #1
0
 /// <summary>
 /// The build location.
 /// </summary>
 /// <param name="dto">
 /// The dto.
 /// </param>
 /// <returns>
 /// The <see cref="ILocation"/>.
 /// </returns>
 public ILocation BuildLocation(LocationDto dto)
 {
     return(new Location()//new CustomFieldsCollection(dto.FieldValues)
     {
         Key = dto.Key,
         Name = dto.Name,
         LocationTypeId = dto.LocationTypeId,
         Coordinate = _geography.GetCoordinateFromStPointText(dto.Coordinate),
         Viewport = _geography.GetViewportFromStLinestringText(dto.Viewport),
         GeocodeStatus = (GeocodeStatus)Enum.Parse(typeof(GeocodeStatus), dto.GeocodeStatus),
         UpdateDate = dto.UpdateDate,
         CreateDate = dto.CreateDate
     });
 }