public virtual async Task UpdateAsync(UpdateEmailSettingsDto input) { await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.Host, input.SmtpHost); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.Port, input.SmtpPort.ToString()); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.UserName, input.SmtpUserName); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.Password, input.SmtpPassword); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.Domain, input.SmtpDomain); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.EnableSsl, input.SmtpEnableSsl.ToString()); await SettingManager.SetGlobalAsync(EmailSettingNames.Smtp.UseDefaultCredentials, input.SmtpUseDefaultCredentials.ToString().ToLowerInvariant()); await SettingManager.SetGlobalAsync(EmailSettingNames.DefaultFromAddress, input.DefaultFromAddress); await SettingManager.SetGlobalAsync(EmailSettingNames.DefaultFromDisplayName, input.DefaultFromDisplayName); }
public Task UpdateAsync(UpdateEmailSettingsDto input) { return(_emailSettingsAppService.UpdateAsync(input)); }