public EditableExpressionModel SerializeEditableExpression(Aims.Expressions.EditableExpression expression) { var result = new EditableExpressionModel( expression.DefaultValue, expression.InitialValue, expression.EditedValue, expression.Comment, this.SerializeValidationIssues(expression.Validate()), expression.LastOneModified ); return(result); }
public void PopulateEditableExpression(Aims.Expressions.EditableExpression expression, EditableExpressionModel model) { expression.InitialValue = model.InitialValue; expression.EditedValue = model.EditedValue; expression.Comment = model.Comment; expression.LastOneModified = model.IsLastEdited; }