private void saveClientAmend(string accountManagerName) { bool success = false; try { success = ClientFunctions.AmendClient(editRecordID, ClientCode.Text, ClientName.Text, accountManagerName, (bool)ActiveCheckBox.IsChecked); } catch (Exception generalException) { MessageFunctions.Error("Error saving amendments to client", generalException); } try { if (success) { MessageFunctions.SuccessAlert("Your changes have been saved successfully.", "Client Amended"); resetAmendPage(accountManagerName); // This is not necessarily done for us by the Account Managers list refreshClientGrid(); } } catch (Exception generalException) { MessageFunctions.Error("Error updating page for saved client amendments", generalException); } }