From aa1f51c5988926fb3b3e35df4904f60ecae10686 Mon Sep 17 00:00:00 2001 From: transtrike Date: Thu, 10 Dec 2020 18:07:56 +0200 Subject: Playing with the mapper --- API/Startup.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'API/Startup.cs') 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(); cfg.CreateMap(); - + }).CreateMapper(); } } -- cgit v1.2.3