reactredux/webapi/WeatherForecast/Models/Pages/BlogItemPageModel.cs

14 lines
482 B
C#

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);
}
}
}