var mapAuditDescription = function (auditList) {
angular.forEach(auditList, function (row) {
var action = row.AuditAction == "Add" ? row.AuditAction + "ed" : row.AuditAction + "d";
var tempDescription = " " + action + " " + row.AuditTarget + " " + row.EntityName + " (ID " + row.EntityId + ").";
row.AuditDescription = row.UserName != null && row.UserName !="" ? row.UserName + " " + tempDescription : row.SourceName + " " + tempDescription;
});
}
angular.forEach(auditList, function (row) {
var action = row.AuditAction == "Add" ? row.AuditAction + "ed" : row.AuditAction + "d";
var tempDescription = " " + action + " " + row.AuditTarget + " " + row.EntityName + " (ID " + row.EntityId + ").";
row.AuditDescription = row.UserName != null && row.UserName !="" ? row.UserName + " " + tempDescription : row.SourceName + " " + tempDescription;
});
}
No comments:
Post a Comment