public void AddToThresholds(ThresholdDTO thresholdDTO) { base.AddObject("Thresholds", thresholdDTO); }
public static ThresholdDTO CreateThresholdDTO(int ID, decimal totalThreshold, decimal intervalThreshold, decimal deltaIntervalThreshold, decimal average3Threshold, decimal average7Threshold, int pnRegId) { ThresholdDTO thresholdDTO = new ThresholdDTO(); thresholdDTO.Id = ID; thresholdDTO.TotalThreshold = totalThreshold; thresholdDTO.IntervalThreshold = intervalThreshold; thresholdDTO.DeltaIntervalThreshold = deltaIntervalThreshold; thresholdDTO.Average3Threshold = average3Threshold; thresholdDTO.Average7Threshold = average7Threshold; thresholdDTO.PnRegId = pnRegId; return thresholdDTO; }