public override void Process(ReportProcessorArgs args) { if (args.ResultTableForView.Rows.Count == 0) { return; } var minLabelValue = double.Parse(ConfigurationManager.AppSettings["MinValueToShowTag"] ?? "80"); var columnName = AIFacet.FacetName + AIFacet._RESULT; args.ResultTableForView.Columns.Add(new ViewField <string>(columnName).ToColumn()); foreach (DataRow row in args.ResultTableForView.Rows) { row[columnName] = _contact.GetAIResult(new Guid(row["ContactId"].ToString()), minLabelValue); } }
public string GetAiResult(Guid id) { return(_contacts.GetAIResult(id)); }