public async Task <ActionResult> AllComments(int id) { var comments = await _commentProvider.GetCommentsAsync(); var commentsViewModel = _commentMapper.ToCommentsViewModel(comments); //var sortedComments = allComment.OrderBy(c => c.PostID).Where(i => i.PostID == id).ToList(); return(PartialView(commentsViewModel)); }