public async Task <IActionResult> AdminDeleteComment(int id)
        {
            // Retrieves comment and returns view
            Comment comment = await _repository.GetCommentAsync(id);

            return(View(comment));
        }
        public async Task <IActionResult> GetComment(int id)
        {
            // Retrieves comment and returns null if not found
            Comment comment = await _repository.GetCommentAsync(id);

            if (comment == null)
            {
                return(NotFound("Comment not found"));
            }
            if (comment.Deleted || comment.Thread.Deleted || comment.User.Deleted)
            {
                return(Gone("Comment deleted"));
            }

            return(Json(new ApiComment(comment)));
        }