Пример #1
0
 public StaticPageData(
     string fileName,
     string title,
     string uriSegment,
     bool isPublished,
     int?menuSequence,
     string?menuIcon,
     string?menuText,
     string markdown,
     PageMetaData pageMetaData)
 {
     FileName     = fileName;
     Title        = title;
     UriSegment   = uriSegment;
     IsPublished  = isPublished;
     MenuSequence = menuSequence;
     MenuIcon     = menuIcon;
     MenuText     = menuText;
     Markdown     = markdown;
     PageMetaData = pageMetaData;
 }
Пример #2
0
 public PostData(
     string fileName,
     string title,
     string author,
     string?email,
     DateTime publishedOn,
     bool isPublished,
     bool isListed,
     string markdown,
     PageMetaData pageMetaData)
 {
     FileName     = fileName;
     Title        = title;
     Author       = author;
     Email        = email;
     PublishedOn  = publishedOn;
     IsPublished  = isPublished;
     IsListed     = isListed;
     Markdown     = markdown;
     PageMetaData = pageMetaData;
 }