Пример #1
0
        public void AddToRepository(StatisticsDto statistics)
        {
            if (string.IsNullOrWhiteSpace(BluePrint))
            {
                throw new BllException("BluePrint not set.");
            }

            if (statistics == null)
            {
                throw new BllException("StatisticsDto can not be null.");
            }

            var statisticsResult = new StatisticsResult
            {
                BluePrint = BluePrint,
                C45Better = statistics.C45Better,
                C50Better = statistics.C50Better,
                Equal = statistics.Equal
            };

            _statisticsResultsRepository.Add(statisticsResult);
        }
 public void Add(StatisticsResult statistics)
 {
     _results.Add(statistics);
 }