private void Save(object o) { try { foreach (var databaseObject in DatabaseObjects) { _auditLogRepository.ClaimAuditRecord(SelectedDeveloper.DomainUserName, ReleaseDate, databaseObject.ObjectName, databaseObject.ObjectSchema, databaseObject.DatabaseName, databaseObject.Category, string.Empty, SelectedLabel.Id); } LinkObjectsChanged?.Invoke(this, EventArgs.Empty); } catch (Exception e) { MessageBox.Show($"{e.Message}{Environment.NewLine}{e.InnerException?.Message}{Environment.NewLine}{e.InnerException?.InnerException?.Message}{Environment.NewLine}{e.StackTrace}", "Error"); } }
private void SaveManualEntry(object o) { try { _auditLogRepository.ClaimAuditRecord(SelectedDeveloper.DomainUserName, ReleaseDate, SelectedObjectName, SelectedObjectSchema, SelectedDatabase.DatabaseName, SelectedSqlServerObjectType.Category, string.Empty, SelectedLabel.Id); LinkObjectsChanged?.Invoke(this, EventArgs.Empty); ActionMessage = "Save Successful"; IsActionError = false; } catch (Exception e) { MessageBox.Show("Error in SaveManualEntry: " + e.Message.Substring(0, 50)); ActionMessage = "Error: " + e.Message.Substring(0, 50); IsActionError = true; } }