Exemplo n.º 1
0
        public bool CreateDoorEvent(int?installationNo, int faultType, bool polled, DateTime eventDate)
        {
            bool bRet = false;

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

            return(bRet);
        }