Skip to content

Commit

Permalink
fix: fix the incorect id
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdizahedii2005 committed Sep 9, 2024
1 parent e02c384 commit 607edb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mohaymen-codestar-Team02/Mapper/AutoMapperProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public AutoMapperProfile()
.ForMember(dest => dest.VertexEntity, opt =>
opt.MapFrom(src => src.VertexEntity));
CreateMap<DataGroup, GetDataGroupDto>()
.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<EdgeEntity, GetEdgeEntityDto>();
CreateMap<VertexEntity, GetVertexEntityDto>();
CreateMap<EdgeAttribute, GetAttributeDto>();
Expand Down

0 comments on commit 607edb9

Please sign in to comment.