Automap viewmodels for details display

This commit is contained in:
2020-07-02 08:55:52 -04:00
parent 2b5de1c4cd
commit 3dedac5591
14 changed files with 300 additions and 206 deletions
-8
View File
@@ -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();