Website Summary Files Commits Branches @commit @diff @stats
path: root / API / Startup.cs
diff options
context:
space:
mode:
Commit4e75e0150d8ba9fdc82e61516b42d04dc09e9d59 (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-10 18:04:07 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-10 18:04:07 +0200
Files8c80fb72a895ad0f5fe492bc220670b95a68836f /API/Startup.cs
DevHive-4e75e0150d8ba9fdc82e61516b42d04dc09e9d59.tar
DevHive-4e75e0150d8ba9fdc82e61516b42d04dc09e9d59.tar.gz
DevHive-4e75e0150d8ba9fdc82e61516b42d04dc09e9d59.zip
Parentc13ff5b569248c0c2f05b154eda8199e0ce96cf8 (diff)
Added Id in UserDto
1 files changed, 2 insertions, 15 deletions
-rw-r--r--API/Startup.cs17
diff --git a/API/Startup.cs b/API/Startup.cs
index 6d95c1a..548274c 100644
--- a/API/Startup.cs
+++ b/API/Startup.cs
@@ -82,21 +82,8 @@ namespace API
//cfg.DestinationMemberNamingConvention = new ExactMatchNamingConvention();
cfg.CreateMap<User, UserDTO>();
- cfg.CreateMap<UserDTO, User>()
- .ForMember(x => x.AccessFailedCount, o => o.Ignore())
- .ForMember(x => x.ConcurrencyStamp, o => o.Ignore())
- .ForMember(x => x.EmailConfirmed, o => o.Ignore())
- .ForMember(x => x.Id, o => o.Ignore())
- .ForMember(x => x.LockoutEnabled, o => o.Ignore())
- .ForMember(x => x.LockoutEnd, o => o.Ignore())
- .ForMember(x => x.NormalizedEmail, o => o.Ignore())
- .ForMember(x => x.NormalizedUserName, o => o.Ignore())
- .ForMember(x => x.PasswordHash, o => o.Ignore())
- .ForMember(x => x.PhoneNumber, o => o.Ignore())
- .ForMember(x => x.PhoneNumberConfirmed, o => o.Ignore())
- .ForMember(x => x.ProfilePicture, o => o.Ignore())
- .ForMember(x => x.SecurityStamp, o => o.Ignore())
- .ForMember(x => x.TwoFactorEnabled, o => o.Ignore());
+ cfg.CreateMap<UserDTO, User>();
+
}).CreateMapper();
}
}