19 lines
776 B
C#
19 lines
776 B
C#
using Core.DomainObjects.Pages;
|
|
using WeatherForecast.Models.Abstractions;
|
|
using WeatherForecast.Models.PageSections;
|
|
|
|
namespace WeatherForecast.Models.Pages {
|
|
public class HomePageModel : PageModelBase<HomePage> {
|
|
|
|
public TestimonialsSectionModel TestimonialsSection { get; set; }
|
|
public FeaturedBlogsSectionModel FeaturedBlogsSection { get; set; }
|
|
public CallToActionSectionModel CallToActionSection { get; set; }
|
|
|
|
public HomePageModel(HomePage homePage) : base(homePage) {
|
|
TestimonialsSection = new TestimonialsSectionModel(homePage.TestimonialsSection);
|
|
FeaturedBlogsSection = new FeaturedBlogsSectionModel(homePage.FeaturedBlogsSection);
|
|
CallToActionSection = new CallToActionSectionModel(homePage.CallToActionSection);
|
|
}
|
|
}
|
|
}
|