public Document GetCollection()
        {
            /////////////////////////////////////////////////////
            // Get all Comments from repository
            /////////////////////////////////////////////////////
            var comments = BloggingRepository.GetComments();

            /////////////////////////////////////////////////////
            // Build JSON API document
            /////////////////////////////////////////////////////
            var currentRequestUri = this.Request.GetUri();

            using (var documentContext = new BloggingDocumentContext(currentRequestUri))
            {
                var document = documentContext
                               .NewDocument(currentRequestUri)
                               .SetJsonApiVersion(JsonApiVersion.Version10)
                               .Links()
                               .AddUpLink()
                               .AddSelfLink()
                               .LinksEnd()
                               .ResourceCollection(comments)
                               .Relationships()
                               .AddRelationship("article", new[] { Keywords.Related })
                               .AddRelationship("author", new[] { Keywords.Related })
                               .RelationshipsEnd()
                               .Links()
                               .AddSelfLink()
                               .LinksEnd()
                               .ResourceCollectionEnd()
                               .WriteDocument();

                return(document);
            }
        }