コード例 #1
0
        public async Task <IActionResult> GetLatestAsync()
        {
            var latestComments = await _commentService.GetLatestComments();

            var latestCommentsViewModel = CommentMapper.ConvertToLastCommentViewModelCollection(latestComments);

            return(Ok(latestCommentsViewModel));
        }