Exemple #1
0
        public static InputValue toEntity(AddInputValueModelView inputValueMV)
        {
            Input      input = Input.valueOf(inputValueMV.input.name, inputValueMV.input.range);
            InputValue iVal  = new InputValue(input);

            iVal.value = inputValueMV.value;
            return(iVal);
        }
Exemple #2
0
        public static AddInputValueModelView fromEntity(InputValue inputValue)
        {
            AddInputValueModelView mv = new AddInputValueModelView();

            mv.input       = new GetInputModelView();
            mv.input.name  = inputValue.input.name;
            mv.input.range = inputValue.input.range;
            mv.value       = inputValue.value;
            return(mv);
        }