public void ShowComments(Article article) { this.navigationService.UriFor<CommentsPageViewModel>() .WithParam(c => c.ArticleId, article.Id) .WithParam(c => c.ArticleTitle, article.Title) .Navigate(); }
public void ShowArticle(Article article) { this.cacheService.Articles[article.Id] = article; if (article.IsText) { this.navigationService.UriFor<ArticleTextPageViewModel>() .WithParam(v => v.ArticleId, article.Id) .Navigate(); } else { this.navigationService.UriFor<ArticleWebPageViewModel>() .WithParam(v => v.ArticleId, article.Id) .Navigate(); } }