private SmsConfig GetServerConfig() { var repo = new AppSettingRepository(); return(new SmsConfig { ApiKey = repo.Get(ConfigKeys.SmsApiKey).Value, Sender = repo.Get(ConfigKeys.SmsSender).Value, }); }
private EmailConfig GetServerConfig() { var repo = new AppSettingRepository(); return new EmailConfig { ApiKey = repo.Get(ConfigKeys.EmailApiKey).Value, Sender = repo.Get(ConfigKeys.EmailSender).Value, AccountName = repo.Get(ConfigKeys.EmailAccountName).Value, }; }