private async void UpdateNote(string name, string body) { bool success = false; await Task.Run(() => { success = _viewModel.UpdateNote(_note.NoteId, name, body); }); if (success) { NavigationController.PopViewController(true); } DialogHelper.DismissProgressDialog(_dialog); }