public static DataPointRealValueDto ConvertToDataPointInfoView(this DataPointViewModel dataPointViewModel) { DataPointRealValueDto dto = new DataPointRealValueDto(); dto.DataPointNumber = dataPointViewModel.Number; dto.DataPointRealTimeValue = dataPointViewModel.RealTimeValue; dto.ValueToSet = dataPointViewModel.ValueToSet; return(dto); }
public static DataPointViewModel ConvertToDataPointViewModel(this DataPointRealValueDto dataPointDto) { DataPointViewModel vm = new DataPointViewModel(); vm.Number = dataPointDto.DataPointNumber; vm.RealTimeValue = dataPointDto.DataPointRealTimeValue; vm.ValueToSet = dataPointDto.ValueToSet; return(vm); }
public static DataPointRealValueDto ConverFrom(DataPointRealValue dataPoint) { DataPointRealValueDto dto = new DataPointRealValueDto(); if (dataPoint != null) { dto.DataPointNumber = dataPoint.DataPointNumber; dto.DataPointRealTimeValue = dataPoint.DataPointRealTimeValue; dto.ValueToSet = dataPoint.ValueToSet; } return(dto); }