Esempio n. 1
0
        private async void ExecuteShowDetailsCommand(BlogPostViewModel post)
        {
            IsLoading = true;

            var blogPost = await _blogService.GetBlogPost(Id.ToString(), post.Id.ToString());
            var html = blogPost.Content;
            var title = blogPost.Title;
            var url = post.Url;

            IsLoading = false;

            ShowViewModel<LocalHtmlWebViewModel>(new { html = html, title = title, url = url });
        }
Esempio n. 2
0
 private async void ExecuteShowDetailsNoLoadingCommand(BlogPostViewModel post)
 {
     ShowViewModel<LocalHtmlWebViewModel>(new { html = "", title = post.Title, url = post.Url });
 }