private async void DoQuoteClicked(Quote quote) { if (Device.Idiom == TargetIdiom.Phone) { var parameter = new NavigationParameters($"id={quote.AuthorValue.Id}"); await _navigationService.NavigateAsync("QuoteDetailPageView", parameter); } else { var message = new AuthorQuoteNavigationMessage { AuthorId = quote.AuthorValue.Id }; _eventAggregator.GetEvent <AuthorQuoteNavigationEvent>().Publish(message); } }
private async void DoAuthorQuoteNavigation(AuthorQuoteNavigationMessage message) { var parameter = new NavigationParameters($"id={message.AuthorId}"); await _navigationService.NavigateAsync("BaseNavigationPageView/QuoteDetailPageView", parameter); }