public bool Save() { AuditTrailBLL objAt = new AuditTrailBLL(); bool auditTrailSucceeded = true; foreach (object[] change in changeObjects) { if ((int)change[2] == ExistingRecord) { auditTrailSucceeded = (-1 != objAt.saveAuditTrail(change[0], change[1], appMode, UserBLL.GetCurrentUser(), businessProcess)); if (!auditTrailSucceeded) { objAt.RoleBack(); break; } } else if ((int)change[2] == NewRecord) { auditTrailSucceeded = (-1 != objAt.saveAuditTrail(change[1], appMode, UserBLL.GetCurrentUser(), businessProcess)); if (!auditTrailSucceeded) { objAt.RoleBack(); break; } } } return(auditTrailSucceeded); }