public bool AddReport(ReportEmailConfiguration report) { if (_reportConfigurations.ContainsKey(report.ReportName)) { return(false); } _reportConfigurations.Add(report.ReportName, report); return(true); }
public ReportEmailConfiguration ToReportEmailConfiguration() { ReportEmailConfiguration config = new ReportEmailConfiguration(Key, _subject); foreach (string to in _toList) { config.AddToRecipient(to); } foreach (string cc in _ccList) { config.AddCcRecipient(cc); } return(config); }