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(); } }