Automap viewmodels for details display
This commit is contained in:
@@ -40,14 +40,6 @@ namespace LeafWeb.WebCms.Models
|
||||
[EnforceTrue(ErrorMessage = "Terms of Service must be accepted to continue")]
|
||||
public bool TermsOfService { get; set; }
|
||||
|
||||
static LeafInputCreate()
|
||||
{
|
||||
Mapper.CreateMap<LeafInputCreate, LeafInput>()
|
||||
.ForMember(dest => dest.PhotosynthesisType, opt => opt.Ignore());
|
||||
Mapper.CreateMap<LeafInput, LeafInputCreate>()
|
||||
.ForMember(dest => dest.PhotosynthesisType, opt => opt.Ignore());
|
||||
}
|
||||
|
||||
public LeafInputCreate()
|
||||
{
|
||||
PhotosynthesisType = new SelectListViewModel();
|
||||
|
||||
Reference in New Issue
Block a user