public SettingsModel ReadSettings() { MySettingsProvider provider = new MySettingsProvider(); return(new SettingsModel { BaseApiAddress = provider.BaseApiAddress, ClientId = provider.ClientId, ClientSecret = provider.ClientSecret, TokenEndpoint = provider.TokenEndpoint }); }
public void SaveSettings(SettingsModel settingsModel) { MySettingsProvider provider = new MySettingsProvider(); //save data to store provider.BaseApiAddress = settingsModel.BaseApiAddress; provider.ClientId = settingsModel.ClientId; provider.ClientSecret = settingsModel.ClientSecret; provider.TokenEndpoint = settingsModel.TokenEndpoint; provider.Save(); }