reactredux/webapi/WeatherForecast/Models/Content/Responses/Pages/HomePageModel.cs

39 lines
1.1 KiB
C#

using DomainObjects.Pages;
using DomainObjects.Pages;
using WeatherForecast.Models.Abstractions;
using WeatherForecast.Models.Content.Responses.PageSections;
namespace WeatherForecast.Models.Content.Responses.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);
}
}
}