public MetaGuidanceViewModel( CachedReleaseViewModel release, CachedPublicationViewModel publication, List <MetaGuidanceSubjectViewModel> subjects) : base(release, publication) { MetaGuidance = release.MetaGuidance; Subjects = subjects; }
public PublicationSummaryViewModel(CachedPublicationViewModel publication) { Id = publication.Id; Title = publication.Title; Slug = publication.Slug; Description = publication.Description; DataSource = publication.DataSource; Summary = publication.Summary; }
public ReleaseSummaryViewModel(CachedReleaseViewModel release, CachedPublicationViewModel publication) { Id = release.Id; Title = release.Title; Slug = release.Slug; YearTitle = release.YearTitle; CoverageTitle = release.CoverageTitle; Published = release.Published; ReleaseName = release.ReleaseName; NextReleaseDate = release.NextReleaseDate; Type = release.Type; LatestRelease = Id == publication.LatestReleaseId; DataLastPublished = release.DataLastPublished; Publication = new PublicationSummaryViewModel(publication); }
public ReleaseViewModel( CachedReleaseViewModel release, CachedPublicationViewModel publication) { Id = release.Id; Title = release.Title; YearTitle = release.YearTitle; CoverageTitle = release.CoverageTitle; ReleaseName = release.ReleaseName; NextReleaseDate = release.NextReleaseDate; Published = release.Published; Slug = release.Slug; Type = release.Type; Updates = release.Updates; Content = release.Content; SummarySection = release.SummarySection; HeadlinesSection = release.HeadlinesSection; KeyStatisticsSection = release.KeyStatisticsSection; KeyStatisticsSecondarySection = release.KeyStatisticsSecondarySection; DownloadFiles = release.DownloadFiles; HasPreReleaseAccessList = !release.PreReleaseAccessList.IsNullOrEmpty(); RelatedInformation = release.RelatedInformation; DataLastPublished = release.DataLastPublished; var otherReleases = publication.Releases .Where(model => Id != model.Id) .ToList(); Publication = new PublicationViewModel( publication.Id, publication.Title, publication.Slug, publication.Description, publication.DataSource, publication.Summary, publication.LatestReleaseId, otherReleases, publication.LegacyReleases, publication.Topic, publication.Contact, publication.ExternalMethodology, publication.Methodology ); }
public PreReleaseAccessListViewModel( CachedReleaseViewModel release, CachedPublicationViewModel publication) : base(release, publication) { PreReleaseAccessList = release.PreReleaseAccessList; }