public DocumentationBase GetDocumentationBase() { DocumentationBase res = new DocumentationBase(); res.DocumentationId = DocumentationId; res.ModuleId = ModuleId; res.FullName = FullName; res.Contents = Contents; res.CreatedByUserID = CreatedByUserID; res.CreatedOnDate = CreatedOnDate; res.LastModifiedByUserID = LastModifiedByUserID; res.LastModifiedOnDate = LastModifiedOnDate; return(res); }
public void ReadDocumentationBase(DocumentationBase documentation) { if (documentation.DocumentationId > -1) { DocumentationId = documentation.DocumentationId; } if (documentation.ModuleId > -1) { ModuleId = documentation.ModuleId; } if (!String.IsNullOrEmpty(documentation.FullName)) { FullName = documentation.FullName; } if (!String.IsNullOrEmpty(documentation.Contents)) { Contents = documentation.Contents; } }