void SaveThresholdValuesFromViewToRequest(ThresholdValueSettingRequest req, ThresholdValueView model) { var tg = ThresholdValuesConvert.ConvertForm(model.ThresholdValues); req.PositiveFirstLevelThresholdValue = tg.PositiveStandardValueGroup.FirstLevelThresholdValue; req.PositiveSecondLevelThresholdValue = tg.PositiveStandardValueGroup.SecondLevelThresholdValue; req.NegativeFirstLevelThresholdValue = tg.NegativeStandardValueGroup.FirstLevelThresholdValue; req.NegativeSecondLevelThresholdValue = tg.NegativeStandardValueGroup.SecondLevelThresholdValue; }
Dictionary <ThresholdValueType, double?[]> ConvertToCategoriesDict(double?[] thresholdValues) { var dict = new Dictionary <ThresholdValueType, double?[]>(); var tg = ThresholdValuesConvert.ConvertForm(thresholdValues); AddPositiveValuesToDict(dict, tg.PositiveStandardValueGroup); AddNegativeValuesToDict(dict, tg.NegativeStandardValueGroup); return(dict); }