public static void UpdateSettings(int ModuleID, List <IUIData> Settings) { if (Settings != null && Settings.Count > 0) { SettingFactory.Update(Settings.Cast <Setting>().ToList()); if (Settings.Where(a => a.Name == "Password").FirstOrDefault() != null) { SettingFactory.UpdateValue(ModuleID, AppFactory.Identifiers.admin_notifications_email.ToString(), "Password", FIPSCompliant.EncryptAES(Settings.Where(a => a.Name == "Password").Select(a => new { a.Value }).FirstOrDefault().Value, Config.GetDecryptionkey(), Host.GUID, 1000)); } CacheFactory.ClearCache(); } }
public static void UpdateValue(int PortalID, int TabID, string Identifier, string Name, string Value) { SettingFactory.UpdateValue(PortalID, TabID, Identifier, Name, Value); }