public int UpdateUserSecurityAttributeUpdateByParent(int?userId, int?attributeTypeId, string attributeValue, System.DateTime?attributeActivationDate, System.DateTime?attributeExpirationDate, int?codeCategoryId, int?parentCodeId) { int _result; using (var db = new DBAMPContext()) { try { _result = db.ApiUserSecurityAttributeUpdateByParent(userId, attributeTypeId, attributeValue, attributeActivationDate, attributeExpirationDate, codeCategoryId, parentCodeId); } catch (Exception ex) { string sqlParam = "ApiUserSecurityAttributeUpdateByParent(" + userId + "," + attributeTypeId + "," + attributeValue + "," + attributeActivationDate + "," + codeCategoryId + "," + parentCodeId + ")"; string methodName = "JCRAPI/Business/UserServices/UpdateUserSecurityAttributeUpdateByParent"; exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, userId, null, sqlParam, string.Empty); return(0); } } return(_result); }