38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Core.DomainObjects.Pages;
|
|
using WeatherForecast.Models.Abstractions;
|
|
using WeatherForecast.Models.PageSections;
|
|
|
|
namespace WeatherForecast.Models.Pages {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class HomePageModel : PageModelBase<HomePage> {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public TestimonialsSectionModel TestimonialsSection { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public FeaturedBlogsSectionModel FeaturedBlogsSection { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public CallToActionSectionModel CallToActionSection { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="homePage"></param>
|
|
public HomePageModel(HomePage homePage) : base(homePage) {
|
|
TestimonialsSection = new TestimonialsSectionModel(homePage.TestimonialsSection);
|
|
FeaturedBlogsSection = new FeaturedBlogsSectionModel(homePage.FeaturedBlogsSection);
|
|
CallToActionSection = new CallToActionSectionModel(homePage.CallToActionSection);
|
|
}
|
|
}
|
|
}
|