Esempio n. 1
0
        public virtual void LogStatus(string msgID, Exception ex = null)
        {
            EW_LOG_BLL logBLL = new EW_LOG_BLL();
            EW_LOG     log    = new EW_LOG();

            log.MESSAGE_ID = msgID;
            log.LOG_DATE   = DateTime.Now;
            if (ex == null)
            {
                log.STATUS = CHubConstValues.IndY;
            }
            else
            {
                log.STATUS  = CHubConstValues.IndN;
                log.ERR_MSG = ex.Message;
            }
            logBLL.AddOrUpdate(log);
        }
Esempio n. 2
0
        public virtual bool HasExecuted(string msgID)
        {
            EW_LOG_BLL logBLL = new EW_LOG_BLL();

            return(logBLL.HasExecuted(msgID));
        }