Exemplo n.º 1
0
        public async Task <IViewComponentResult> InvokeAsync(int forumPostId, bool showTopic)
        {
            var forumPost = await _forumService.GetPostByIdAsync(forumPostId);

            var model = await _forumModelFactory.PrepareLastPostModelAsync(forumPost, showTopic);

            return(View(model));
        }