Example #1
0
        public IActionResult Configure(Sms77Settings sms77Settings) {
            if (!ModelState.IsValid) {
                return Configure();
            }

            SettingService.SaveSetting(sms77Settings, settings => settings.ApiKey, clearCache: false);
            SettingService.SaveSetting(sms77Settings, settings => settings.From, clearCache: false);
            SettingService.ClearCache();

            SuccessNotification("Admin.Plugins.Saved");
            
            return Configure();
        }