Ejemplo n.º 1
0
 /// <summary>
 /// Get all posts
 /// </summary>
 /// <returns>all posts</returns>
 public async Task OnGetAsync()
 {
     Post = await _post.FindPost(ID.GetValueOrDefault()) ?? new Post();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get all posts and comments
        /// </summary>
        /// <returns>posts</returns>
        public async Task OnGet()
        {
            Post = await _post.FindPost(ID);

            Comment = await _comment.FindComment(ID);
        }