Automap viewmodels for details display
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using AutoMapper;
|
||||
using LeafWeb.Core.Entities;
|
||||
|
||||
namespace LeafWeb.WebCms.Models
|
||||
{
|
||||
public class LeafInputDataCurveViewModel
|
||||
{
|
||||
/// <summary>Sample CO2 concentration</summary>
|
||||
//[ParseInfo(17, units: "umol/mol")]
|
||||
public double? CO2S { get; set; }
|
||||
|
||||
public LeafInputDataCurveViewModel() {}
|
||||
|
||||
public LeafInputDataCurveViewModel(LeafInputDataCurve leafInputDataCurve)
|
||||
{
|
||||
Mapper.Map(leafInputDataCurve, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user