Skip to content

Commit

Permalink
Fix - Correction du mapping du OwnerVM to OwnerInput sur Manage
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Dec 23, 2020
1 parent 82021a7 commit 89c18b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ Sheaft.Web.Jobs/appsettings.Development.json
Docker/sql/data
Docker/sql/log
Docker/sql/secrets

.idea/*
*.sln.*.user
3 changes: 2 additions & 1 deletion Sheaft.Application.Mappers/OwnerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public OwnerProfile()
CreateMap<Owner, OwnerDto>();
CreateMap<Owner, OwnerViewModel>();

CreateMap<OwnerViewModel, OwnerInput>();
CreateMap<OwnerViewModel, OwnerInput>()
.ForMember(d => d.Address, opt => opt.MapFrom(r => r.Address));
}
}
}

0 comments on commit 89c18b9

Please sign in to comment.