public static bool UpdateUnassignStatusQueue(string queue)
        {
            bool update = true;
            UpdateStatusAllFirmModulesDAL objUpdateStatus = new UpdateStatusAllFirmModulesDAL();

            try
            {
                try
                {
                    objUpdateStatus.UpdateUnassignStatusQueue(queue, CommonENT.MYCTSDBSECURITY_CONNECTION);
                }
                catch
                {
                    objUpdateStatus.UpdateUnassignStatusQueue(queue, CommonENT.MYCTSDBSECURITYBACKUP_CONNECTION);
                    update = false;
                }
            }
            catch
            {
                update = false;
            }

            return(update);
        }
        public static bool UpdateStatusAgent(string agent)
        {
            bool update = true;
            UpdateStatusAllFirmModulesDAL objUpdateStatus = new UpdateStatusAllFirmModulesDAL();

            try
            {
                try
                {
                    objUpdateStatus.UpdateStatusAgent(agent, CommonENT.MYCTSDBSECURITY_CONNECTION);
                }
                catch
                {
                    objUpdateStatus.UpdateStatusAgent(agent, CommonENT.MYCTSDBSECURITYBACKUP_CONNECTION);
                    update = false;
                }
            }
            catch
            {
                update = false;
            }

            return(update);
        }