public static AnalyticStatisticsValue FromDtoToDomainObject( AnalyticStatisticsValueDto source) { AnalyticStatisticsValue target = new AnalyticStatisticsValue( source.Value, source.SourceVin, source.SourcePsaParametersSetId, source.SourceDataCaptureDateTime); target.Id = source.Id; target.AnalyticStatisticsItemId = source.AnalyticStatisticsItemId; return(target); }
public static AnalyticStatisticsValueDto FromEntityToDto(AnalyticStatisticsValueEntity source) { AnalyticStatisticsValueDto target = new AnalyticStatisticsValueDto(); target.Id = source.Id; target.AnalyticStatisticsItemId = source.AnalyticStatisticsItemId; target.SourceDataCaptureDateTime = source.SourceDataCaptureDateTime; target.SourcePsaParametersSetId = source.SourcePsaParametersSetId; target.SourceVin = source.SourceVehicleVin; target.Value = source.Value; return(target); }