From 779b2eb9033f806f32816d38126013cd2839a25b Mon Sep 17 00:00:00 2001 From: Raffaello Damgaard Date: Wed, 22 Apr 2020 20:16:55 -0300 Subject: [PATCH] Lista de facilitadores funcionando no .net core 3.1 --- .../AutoMapper/DomainToViewModelMappingProfile.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ShareBook/ShareBook.Api/AutoMapper/DomainToViewModelMappingProfile.cs b/ShareBook/ShareBook.Api/AutoMapper/DomainToViewModelMappingProfile.cs index 1eda2b4b..129b3d18 100644 --- a/ShareBook/ShareBook.Api/AutoMapper/DomainToViewModelMappingProfile.cs +++ b/ShareBook/ShareBook.Api/AutoMapper/DomainToViewModelMappingProfile.cs @@ -42,6 +42,10 @@ protected DomainToViewModelMappingProfile(string profileName) : base(profileName CreateMap() .ForMember(dest => dest.Address, opt => opt.MapFrom(src => src.Address)); + CreateMap() + .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)) + .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name)); + #endregion [ User ] #region [ BookUser ]