public void AddUpdateSetting(List <KeyValue> lstSettings, string UserName) { try { string Settings = this.CreateSettingXML(lstSettings); MassMailSettingProvider settingProvider = new MassMailSettingProvider(); settingProvider.AddUpdateSetting(Settings, UserName); // SageFrame.Core => Globals //Globals.sysHst[SettingSessionKey] = null; } catch { throw; } }
public async Task <IList <MassMailSettingInfo> > GetAllSettings() { try { MassMailSettingProvider settingProvider = new MassMailSettingProvider(); //IList<MassMailSettingInfo> lstInfo = null; //if (lstInfo == null) //{ //lstInfo = await settingProvider.GetAllSettings(); return(await settingProvider.GetAllSettings()); //} //return lstInfo; } catch { throw; } }