aboutsummaryrefslogtreecommitdiff
path: root/API/Startup.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-10 18:07:56 +0200
committertranstrike <transtrike@gmail.com>2020-12-10 18:07:56 +0200
commitaa1f51c5988926fb3b3e35df4904f60ecae10686 (patch)
treee304a7618bf6b9ee4ccc611bdcbc68d11649380f /API/Startup.cs
parent4e75e0150d8ba9fdc82e61516b42d04dc09e9d59 (diff)
downloadDevHive-aa1f51c5988926fb3b3e35df4904f60ecae10686.tar
DevHive-aa1f51c5988926fb3b3e35df4904f60ecae10686.tar.gz
DevHive-aa1f51c5988926fb3b3e35df4904f60ecae10686.zip
Playing with the mapper
Diffstat (limited to 'API/Startup.cs')
-rw-r--r--API/Startup.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/API/Startup.cs b/API/Startup.cs
index 548274c..825c2d4 100644
--- a/API/Startup.cs
+++ b/API/Startup.cs
@@ -77,13 +77,11 @@ namespace API
endpoints.MapControllers();
});
- IMapper configuration = new MapperConfiguration(cfg =>
+ var configuration = new MapperConfiguration(cfg =>
{
- //cfg.DestinationMemberNamingConvention = new ExactMatchNamingConvention();
-
cfg.CreateMap<User, UserDTO>();
cfg.CreateMap<UserDTO, User>();
-
+
}).CreateMapper();
}
}