From 607edb9c02a6250a9a4d382d450ba9f6931e9a74 Mon Sep 17 00:00:00 2001 From: Mahdizahedi2005 Date: Mon, 9 Sep 2024 13:21:50 +0330 Subject: [PATCH] fix: fix the incorect id --- mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs b/mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs index f66a3d7..814d6d2 100644 --- a/mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs +++ b/mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs @@ -25,7 +25,9 @@ public AutoMapperProfile() .ForMember(dest => dest.VertexEntity, opt => opt.MapFrom(src => src.VertexEntity)); CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name)); + .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name)) + .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.DataGroupId)); + CreateMap(); CreateMap(); CreateMap();