コード例 #1
0
        public static List <SabreMessages> GetSabreMessages(Module module, bool includeConditionals)
        {
            int moduleId = GetModuleID(module);

            List <SabreMessages> listSabreMessages = new List <SabreMessages>();

            try
            {
                SabreMessagesDAL objSabreMessages = new SabreMessagesDAL();
                listSabreMessages = objSabreMessages.GetSabreMessages(moduleId, includeConditionals);
            }
            catch (Exception)
            {
            }

            return(listSabreMessages);
        }
コード例 #2
0
        public static SabreMessages GetSingleSabreMessage(string apiMessage, Module module)
        {
            int moduleId = GetModuleID(module);

            SabreMessages    item             = null;
            SabreMessagesDAL objSabreMessages = new SabreMessagesDAL();

            try
            {
                try
                {
                    item = objSabreMessages.GetSingleSabreMessage(apiMessage, moduleId, CommonENT.MYCTSDB_CONNECTION);
                }
                catch (Exception ex)
                {
                    new EventsManager.EventsManager(ex, EventsManager.EventsManager.OrigenError.BaseDeDatos);
                    item = objSabreMessages.GetSingleSabreMessage(apiMessage, moduleId, CommonENT.MYCTSDBBACKUP_CONNECTION);
                }
            }
            catch
            { }

            return(item);
        }