Ejemplo n.º 1
0
        private Document Transform(DocumentContentSummary content)
        {
            var document = new Document();

            Transform(content, document);
            return(document);
        }
Ejemplo n.º 2
0
 private void Transform(DocumentContentSummary content, Document document)
 {
     document.TemplateName    = content.TemplateName;
     document.TemplateVersion = content.TemplateVersion;
     document.MappingName     = content.MappingName;
     document.MappingVersion  = content.MappingVersion;
     document.DocumentId      = content.Identifier;
     document.Timestamp       = content.Timestamp;
     document.Size            = content.Size;
     document.FileName        = content.FileName;
     if (htmlRepository != null)
     {
         document.Url = htmlRepository.GetUrl(content.Name);
     }
 }