public DocumentController(
     DocumentService documentService,
     IDocumentEncoder documentEncoder)
 {
     _documentService = documentService;
     _documentEncoder = documentEncoder;
 }
        public static DocumentCreate Decode(this IDocumentEncoder documentEncoder, string encodedDocument)
        {
            Guid nonce;
            var  result = documentEncoder.Decode(encodedDocument, out nonce);

            return(result);
        }