private void saveContactAmend() { bool success = false; try { success = ClientFunctions.AmendContact(selectedContactID, FirstName.Text, Surname.Text, JobTitle.Text, PhoneNumber.Text, Email.Text, (bool)ActiveCheckBox.IsChecked); } catch (Exception generalException) { MessageFunctions.Error("Error saving amendments to contact", generalException); } try { if (success) { MessageFunctions.SuccessAlert("Your changes have been saved successfully.", "Contact Amended"); goBack(); } } catch (Exception generalException) { MessageFunctions.Error("Error updating page for saved contact amendments", generalException); } }