public async void DeleteNote() { DialogService dialog = new DialogService(); await dialog.ShowMessage("Do you really want to delete the selected note?", "Delete selected note!", "YES, delete", "NO, let me return", async confirmed => { if (confirmed) { await dataService.DeleteNote(SelectedNote); } }); }