reactredux/webapi/WeatherForecast/Models/TestimonialModel.cs

30 lines
565 B
C#

using Core.DomainObjects;
namespace WeatherForecast.Models {
/// <summary>
///
/// </summary>
public class TestimonialModel {
/// <summary>
///
/// </summary>
public string Text { get; set; }
/// <summary>
///
/// </summary>
public ReviewerModel Reviewer { get; set; }
/// <summary>
///
/// </summary>
/// <param name="testimonial"></param>
public TestimonialModel(Testimonial testimonial) {
Text = testimonial.Text;
Reviewer = new ReviewerModel(testimonial.Reviewer);
}
}
}