using Core.DomainObjects; namespace WeatherForecast.Models { public class TestimonialModel { public string Text { get; set; } public ReviewerModel Reviewer { get; set; } public TestimonialModel(Testimonial testimonial) { Text = testimonial.Text; Reviewer = new ReviewerModel(testimonial.Reviewer); } } }