public SettingsModel() { SummarySettings = new SummarySettingsModel(); FileStorageSettings = new FileStorageSettingsModel(); ActiveDirectorySettings = new ActiveDirectorySettingsModel(); ScanAgentSettings = new ScanAgentSettingsModel(); PluginSettings = new PluginSettingsModel(); NotificationSettings = new NotificationSettingsModel(); }
private static NotificationSettingsDto ToDto(this NotificationSettingsModel model) { if (model == null) { return(null); } return(new NotificationSettingsDto { IsSslEnabled = model.IsSslEnabled, MailBox = model.MailBox, MailServerHost = model.MailServerHost, MainServerPort = model.MainServerPort, Password = model.Password, UserName = model.UserName }); }