public static AddInputValuesModelView fromCollection(List <InputValue> inputValues) { AddInputValuesModelView addInputValues = new AddInputValuesModelView(); foreach (InputValue inputValue in inputValues) { addInputValues.Add(fromEntity(inputValue)); } return(addInputValues); }
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); }