Example #1
0
 public List <BlogPostModel> GetAllBlogPosts()
 {
     return(blogPostService.GetAllBlogPosts());
 }
Example #2
0
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            ViewModel = await BlogPostService.GetAllBlogPosts();
        }