public IViewComponentResult Invoke(string forumPostId, bool showTopic)
        {
            var post  = _forumService.GetPostById(forumPostId);
            var model = _boardsViewModelService.PrepareLastPost(post, showTopic);

            return(View(model));
        }
Exemple #2
0
        public async Task <IViewComponentResult> InvokeAsync(string forumPostId, bool showTopic)
        {
            var model = await _boardsViewModelService.PrepareLastPost(forumPostId, showTopic);

            return(View(model));
        }