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

22 lines
1008 B
C#

using Core.DomainObjects.Pages;
using WeatherForecast.Models.Abstractions;
using WeatherForecast.Models.PageSections;
namespace WeatherForecast.Models.Pages {
public class HomePageModel : PageModelBase{
public TitleSectionModel TitleSection { get; set; }
public FeaturesSectionModel FeaturesSection { get; set; }
public TestimonialsSectionModel TestimonialsSection { get; set; }
public FeaturedBlogsSectionModel FeaturedBlogsSection { get; set; }
public CallToActionSectionModel CallToActionSection { get; set; }
public HomePageModel(HomePage homePage) {
TitleSection = new TitleSectionModel(homePage.TitleSection);
FeaturesSection = new FeaturesSectionModel(homePage.FeaturesSection);
TestimonialsSection = new TestimonialsSectionModel(homePage.TestimonialsSection);
FeaturedBlogsSection = new FeaturedBlogsSectionModel(homePage.FeaturedBlogsSection);
CallToActionSection = new CallToActionSectionModel(homePage.CallToActionSection);
}
}
}