public void AddErrorLog(
            LogTypeEnum parmLogType  = LogTypeEnum.Error,
            string parmLogSenderFunc = "",
            int?parmLogUser          = null,
            string parmLogMessage    = null,
            Exception parmException  = null)
        {
            var entity = new LogEntity
            {
                LogUser      = parmLogUser,
                LogType      = (int)parmLogType,
                LogDate      = GetDate,
                LogMessage   = parmLogMessage,
                LogSender    = parmLogSenderFunc,
                LogException = (parmException != null) ? parmException.StackTrace : string.Empty
            };

            InsertLog(entity);
        }
        public void AddFattalLog(
            string parmLogSenderFunc,
            string parmLogMessage,
            string parmLogData,
            Exception parmException,
            LogTypeEnum parmLogType = LogTypeEnum.Fattal)
        {
            var dto = new LogEntity
            {
                LogType      = (int)parmLogType,
                LogData      = parmLogData,
                LogDate      = GetDate,
                LogMessage   = parmLogMessage,
                LogSender    = parmLogSenderFunc,
                LogException = (parmException != null) ? parmException.StackTrace : string.Empty
            };

            InsertLog(dto);
        }
        public void AddInfoLog(
            LogTypeEnum parmLogType   = LogTypeEnum.Info,
            string parmLogSenderFunc  = "",
            int?parmLogUser           = null,
            string parmLogMessage     = null,
            StringBuilder parmLogData = null,
            Exception parmException   = null
            )
        {
            var entity = new LogEntity
            {
                LogUser      = parmLogUser,
                LogType      = (int)parmLogType,
                LogData      = parmLogData.ToString(),
                LogDate      = GetDate,
                LogMessage   = parmLogMessage,
                LogSender    = parmLogSenderFunc,
                LogException = (parmException != null) ? parmException.StackTrace : string.Empty
            };

            InsertLog(entity, true);
        }