///<summary>Creates an ODThread so that we can safely change the database connection settings without affecting the calling method's connection.</summary> public static void DbAction(DbActionDelegate actionDelegate, bool isWebChatDb = true) { try { if (isWebChatDb) { DataAction.RunWebChat(() => actionDelegate()); } else //Customers { DataAction.RunCustomers(() => actionDelegate(), useConnectionStore: false); } } catch (Exception ex) { LogException(ex); } }