private async void EditFavorite(IFavorite obj) { //bring up the AddOrEdit dialog in Edit mode var dialog = new AddOrEditFavoriteDialog(obj); await dialog.ShowAsync(); if (dialog.ResultFavorite != null) { _favoritesService.EditFavorite(dialog.ResultFavorite); } }