Beispiel #1
0
        public bool InsertGeneralEvents(int installationNo, int faultType, bool polled, DateTime eventDate, int faultSource)
        {
            bool bRet = false;

            try
            {
                using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
                {
                    DataContext.InsertGeneralEvents(installationNo, faultType, polled, eventDate, faultSource);
                    bRet = true;
                }
            }
            catch (Exception ex)
            {
                bRet = false;
                Log.Exception(ex);
            }

            return(bRet);
        }