private List <InternalReferenceItem> InternalReference(int id) { List <InternalReferenceItem> items = new List <InternalReferenceItem>(); List <EntityDTO> references = entityData.GetInternalReference(id); if (references.Count > 0) { foreach (EntityDTO related in references) { InternalReferenceItem ii = new InternalReferenceItem(); related.ExtractProperties(); ii.DocumentType = related.RenderHTML(GlobalStringResource.ReferenceType, RenderOption.Paragraph); ii.Title = related.RenderHTML(GlobalStringResource.Description, RenderOption.Paragraph); ii.DocumentReferenceNumber = related.Name; items.Add(ii); } } return(items); }
private List<InternalReferenceItem> InternalReference(int id) { List<InternalReferenceItem> items = new List<InternalReferenceItem>(); List<EntityDTO> references = entityData.GetInternalReference(id); if (references.Count > 0) { foreach (EntityDTO related in references) { InternalReferenceItem ii = new InternalReferenceItem(); related.ExtractProperties(); ii.DocumentType = related.RenderHTML(GlobalStringResource.ReferenceType, RenderOption.Paragraph); ii.Title = related.RenderHTML(GlobalStringResource.Description, RenderOption.Paragraph); ii.DocumentReferenceNumber = related.Name; items.Add(ii); } } return items; }