aboutsummaryrefslogtreecommitdiff
path: root/API/Startup.cs
diff options
context:
space:
mode:
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();
}
}