public void Save(int id, PageAnalysis pageAnalysis) { if (id < 0) { throw new ArgumentException(nameof(id)); } if (pageAnalysis == null) { throw new ArgumentNullException(nameof(pageAnalysis)); } if (_nodeReportRepository.TableExists) { var scoreReport = _pageScoreSerializer.Serialize(pageAnalysis.Score); var nodeReport = new NodeReport { Id = id, FocusKeyword = pageAnalysis.FocusKeyword, Report = scoreReport, CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now }; Save(nodeReport); } }