Ejemplo n.º 1
0
        public bool CreatePowerEvent(int installation_ID, int faultType, bool polled, DateTime eventDate)
        {
            bool bRet = false;

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

            return(bRet);
        }