Exemple #1
0
 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;
     }
 }
Exemple #2
0
        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;
            }
        }