public ResponseModel SolicitaVideoChat(ChatVideoModel poChatVideoModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458272094, $"Inicia ResponseModel SolicitaVideoChat(ChatVideoModel poChatVideoModel)", poChatVideoModel));

            try
            {
                ChatVideoModel oChatVideoModel = poChatVideoModel;
                clsPacientes   objclsPacientes = new clsPacientes();
                //objResponseModel = objclsPacientes.m_SolicitaVideoChat(poChatVideoModel);

                objResponseModel.sMensaje = string.IsNullOrEmpty(ConfigurationManager.AppSettings.Get("sMensajeVideoDemo")) ? "La versión demo no cuenta con esta característica." : ConfigurationManager.AppSettings.Get("sMensajeVideoDemo");

                logger.Warn(SerializeModel.Serialize(67823458296181, $"Response ResponseModel SolicitaVideoChat(ChatVideoModel poChatVideoModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.bRespuesta = false;
                objResponseModel.sMensaje   = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458272871, $"Error en ResponseModel SolicitaVideoChat(ChatVideoModel poChatVideoModel): {ex.Message}", poChatVideoModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public ResponseModel CreaUser(UserModel poUserModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458268986, $"Inicia ResponseModel CreaUser(UserModel poUserModel)", poUserModel));

            try
            {
                clsPacientes objclsPacientes = new clsPacientes();
                // objResponseModel = objclsPacientes.m_CreaUsuario(poUserModel);

                logger.Warn(SerializeModel.Serialize(67823458294627, $"Response ResponseModel CreaUser(UserModel poUserModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.sMensaje = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458269763, $"Error en ResponseModel CreaUser(UserModel poUserModel): {ex.Message}", poUserModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public ResponseModel SolicitaMedico(BaseModel poChatModel)
        {
            ResponseModel oResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458282972, $"Inicia ResponseModel SolicitaMedico(BaseModel poChatModel)", poChatModel));

            try
            {
                clsPacientes objclsPacientes = new clsPacientes();
                oResponseModel = objclsPacientes.m_getSala_DR(poChatModel);

                logger.Warn(SerializeModel.Serialize(67823458301620, $"Response ResponseModel SolicitaMedico(BaseModel poChatModel)", oResponseModel));
            }
            catch (Exception ex)
            {
                oResponseModel.bRespuesta = false;
                oResponseModel.sMensaje   = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458283749, $"Error en ResponseModel SolicitaMedico(BaseModel poChatModel): {ex.Message}", poChatModel, ex, oResponseModel));
            }
            return(oResponseModel);
        }
        public ResponseModel LiberarUsuario(LoginModel poLoginModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458281418, $"Inicia ResponseModel LiberarUsuario(LoginModel poLoginModel)", poLoginModel));

            try
            {
                LoginModel   objLoginModel   = poLoginModel;
                clsPacientes objclsPacientes = new clsPacientes();
                objResponseModel = objclsPacientes.m_Liberar_Usuario(objLoginModel);

                logger.Warn(SerializeModel.Serialize(67823458300843, $"Response ResponseModel LiberarUsuario(LoginModel poLoginModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.sMensaje = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458282195, $"Error en ResponseModel LiberarUsuario(LoginModel poLoginModel): {ex.Message}", poLoginModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public ResponseModel AceptarTerminos(LoginModel poLoginModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458279864, $"Inicia ResponseModel AceptarTerminos(LoginModel poLoginModel)", poLoginModel));

            try
            {
                LoginModel   objLoginModel   = poLoginModel;
                clsPacientes objclsPacientes = new clsPacientes();
                objResponseModel = objclsPacientes.m_Aceptar_Terminos_y_condiciones(objLoginModel);

                logger.Warn(SerializeModel.Serialize(67823458300066, $"Response ResponseModel AceptarTerminos(LoginModel poLoginModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.sMensaje = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458280641, $"Error en ResponseModel AceptarTerminos(LoginModel poLoginModel): {ex.Message}", poLoginModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public ResponseModel IniciaVideoChatIOS(ChatVideoModel pochatVideoModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458276756, $"Inicia ResponseModel IniciaVideoChatIOS(ChatVideoModel pochatVideoModel)", pochatVideoModel));

            try
            {
                ChatVideoModel objChatVideoModel = pochatVideoModel;
                clsPacientes   objclsPacientes   = new clsPacientes();
                // objResponseModel = objclsPacientes.m_IniciaVideoChatIOS(objChatVideoModel);

                logger.Warn(SerializeModel.Serialize(67823458298512, $"Response ResponseModel IniciaVideoChatIOS(ChatVideoModel pochatVideoModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.sMensaje = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458277533, $"Error en ResponseModel IniciaVideoChatIOS(ChatVideoModel pochatVideoModel): {ex.Message}", pochatVideoModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public bool OcuparDR(DrModel poDrModel)
        {
            bool bResultado = false;

            logger.Info(SerializeModel.Serialize(67823458265878, $"Inicia bool OcuparDR(DrModel poDrModel)", poDrModel));

            try
            {
                clsPacientes objclsPacientes = new clsPacientes();
                poDrModel.bEstado = false;
                bResultado        = objclsPacientes.m_Marca_DR(poDrModel.iIdDRCGU, poDrModel.bEstado, "", "");

                logger.Warn(SerializeModel.Serialize(67823458293073, $"Response bool OcuparDR(DrModel poDrModel)", bResultado));
            }
            catch (Exception ex)
            {
                bResultado = false;

                logger.Error(SerializeModel.Serialize(67823458266655, $"Error en bool OcuparDR(DrModel poDrModel): {ex.Message}", poDrModel, ex, bResultado));
            }
            return(bResultado);
        }
        public ResponseModel FinalizaChat(DrModel poDrModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458262770, $"Inicia ResponseModel FinalizaChat(DrModel poDrModel)", poDrModel));

            try
            {
                DrModel      oDrModel        = poDrModel;
                clsPacientes objclsPacientes = new clsPacientes();
                objResponseModel = objclsPacientes.m_FinalizaChat(oDrModel);

                logger.Warn(SerializeModel.Serialize(67823458291519, $"Response ResponseModel FinalizaChat(DrModel poDrModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.bRespuesta = false;
                objResponseModel.sMensaje   = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458263547, $"Error en ResponseModel FinalizaChat(DrModel poDrModel): {ex.Message}", poDrModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }
        public ResponseModel SolicitaGrupo(ChatModel poChatModel)
        {
            ResponseModel objResponseModel = new ResponseModel();

            logger.Info(SerializeModel.Serialize(67823458273648, $"Inicia ResponseModel SolicitaGrupo(ChatModel poChatModel)", poChatModel));

            try
            {
                ChatModel    oChatModel      = poChatModel;
                clsPacientes objclsPacientes = new clsPacientes();
                // objResponseModel = objclsPacientes.m_SolicitaChat(oChatModel);

                logger.Warn(SerializeModel.Serialize(67823458296958, $"Response ResponseModel SolicitaGrupo(ChatModel poChatModel)", objResponseModel));
            }
            catch (Exception ex)
            {
                objResponseModel.bRespuesta = false;
                objResponseModel.sMensaje   = ex.Message;

                logger.Error(SerializeModel.Serialize(67823458274425, $"Error en ResponseModel SolicitaGrupo(ChatModel poChatModel): {ex.Message}", poChatModel, ex, objResponseModel));
            }
            return(objResponseModel);
        }