Beispiel #1
0
        public int OptOutOfSystemTracers(int tracerID, int userID)
        {
            int _result;

            try {
                using (var db = new Data.DBMEdition01Context()) {
                    _result = db.ApiOptOutOfSystemTracers(tracerID, userID);
                }
                return(_result);
            }
            catch (Exception ex) {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("EXEC dbo.apiOptOutOfSystemTracers @TracerID='{0}', @UserID={1}", tracerID, userID);
                string sqlParam   = sb.ToString();
                string methodName = "JCRAPI/Business/TracerService/OptOutOfSystemTracers";
                exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, tracerID, sqlParam, string.Empty);
                return(0);
            }
        }