Exemplo n.º 1
0
        public void Notify(string i_Msg, eLogType i_LogType, string i_LogData)
        {
            MyDiveEntities MyDiveDB = null;

            try
            {
                DateTime d = DateTime.Now.Date;
                MyDiveDB = new MyDiveEntities();
                MyDiveDB.stp_InsertLog(
                    (int)i_LogType,
                    i_Msg,
                    DateTime.Now.Date,
                    i_LogData);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (MyDiveDB != null)
                {
                    MyDiveDB.Dispose();
                }
            }
        }