/// <summary> /// Get all posts /// </summary> /// <returns>all posts</returns> public async Task OnGetAsync() { Post = await _post.FindPost(ID.GetValueOrDefault()) ?? new Post(); }
/// <summary> /// Get all posts and comments /// </summary> /// <returns>posts</returns> public async Task OnGet() { Post = await _post.FindPost(ID); Comment = await _comment.FindComment(ID); }