using Core.DomainObjects.Pages; using WeatherForecast.Models.Abstractions; using WeatherForecast.Models.PageSections; namespace WeatherForecast.Models.Pages { public class BlogItemPageModel : PageModelBase { public CommentsSectionModel CommentsSection { get; set; } public BlogItemPageModel(BlogItemPage blogItemPage) : base(blogItemPage.Header, blogItemPage.TitleSection) { CommentsSection = new CommentsSectionModel(blogItemPage.CommentsSection); } } }