/// <summary> /// Converts the domain model into an entity. /// </summary> /// <returns>The entity.</returns> /// <param name="elevation">Elevation.</param> internal static ElevationEntity ToEntity(this Elevation elevation) { ElevationEntity elevationEntity = new ElevationEntity { Roof = elevation.Roof, Unknown = elevation.Unknown }; return(elevationEntity); }
/// <summary> /// Converts the entity into a domain model. /// </summary> /// <returns>The domain model.</returns> /// <param name="elevationEntity">Elevation entity.</param> internal static Elevation ToDomainModel(this ElevationEntity elevationEntity) { Elevation elevation = new Elevation { Roof = elevationEntity.Roof, Unknown = elevationEntity.Unknown }; return(elevation); }