public static ObstacleModel ToModel(ObstacleRepository.ObstacleModel repositoryModel) { var obstacleModel = new ObstacleModel { ObsStudy = repositoryModel.ObsStudy, ObsType = repositoryModel.ObsType, ObsLatitudeDms = repositoryModel.ObsLatitudeDms, ObsLongitudeDms = repositoryModel.ObsLongitudeDms, ObsLatitudeHemisphere = repositoryModel.ObsLatitudeHemisphere, ObsLongitudeHemisphere = repositoryModel.ObsLongitudeHemisphere, ObsAglHeight = repositoryModel.ObsAglHeight, ObsMslHeight = repositoryModel.ObsMslHeight, ObstLatitudeDd = repositoryModel.ObstLatitudeDd, ObsLongitudeDd = repositoryModel.ObsLongitudeDd, ObsIcao = repositoryModel.ObsIcao }; return(obstacleModel); }
public ObstacleRepository.ObstacleModel ToRepositoryModel() { var repositoryModel = new ObstacleRepository.ObstacleModel { ObsStudy = ObsStudy, ObsType = ObsType, ObsLatitudeDms = ObsLatitudeDms, ObsLongitudeDms = ObsLongitudeDms, ObsLatitudeHemisphere = ObsLatitudeHemisphere, ObsLongitudeHemisphere = ObsLongitudeHemisphere, ObsAglHeight = ObsAglHeight, ObsMslHeight = ObsMslHeight, ObsLongitudeDd = ObstLatitudeDd, ObstLatitudeDd = ObstLatitudeDd, ObsIcao = ObsIcao }; return(repositoryModel); }