Esempio n. 1
0
        int IActionTracking.AddAppEventLogDetail(int?programId, int?siteId, int?actionTypeId, int?userId, int?productId)
        {
            int _result;

            using (var db = new DBAMPContext())
            {
                try
                {
                    _result = db.ApiAddAppEventLogDetail(programId, siteId, actionTypeId, userId, productId);
                }
                catch (Exception ex)
                {
                    string sqlParam   = "ApiAddAppEventLogDetail(" + programId + "," + siteId + "," + actionTypeId + "," + userId + "," + productId + ")";
                    string methodName = "JCRAPI/Business/IActionTracking/AddAppEventLogDetail";
                    exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, userId, siteId, sqlParam, string.Empty);

                    return(0);
                }
            }
            return(_result);
        }