Exemple #1
0
        public static AddInputValuesModelView fromCollection(List <InputValue> inputValues)
        {
            AddInputValuesModelView addInputValues = new AddInputValuesModelView();

            foreach (InputValue inputValue in inputValues)
            {
                addInputValues.Add(fromEntity(inputValue));
            }
            return(addInputValues);
        }
Exemple #2
0
        public static Dictionary <Input, string> toDictionary(AddInputValuesModelView inputValuesMV)
        {
            Dictionary <Input, string> dictionary = new Dictionary <Input, string>();

            foreach (AddInputValueModelView inputValueMV in inputValuesMV)
            {
                dictionary.Add(Input.valueOf(inputValueMV.input.name, inputValueMV.input.range), inputValueMV.value);
            }
            return(dictionary);
        }