aboutsummaryrefslogtreecommitdiff
path: root/API/Service
diff options
context:
space:
mode:
Diffstat (limited to 'API/Service')
-rw-r--r--API/Service/UserService.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/API/Service/UserService.cs b/API/Service/UserService.cs
index d84d74b..ce90d0c 100644
--- a/API/Service/UserService.cs
+++ b/API/Service/UserService.cs
@@ -17,11 +17,10 @@ namespace API.Service
private readonly DbRepository<User> _dbRepository;
private readonly Mapper _userMapper;
- public UserService(DevHiveContext context, IMapper mapper)
+ public UserService(DevHiveContext context, Mapper mapper)
{
this._dbRepository = new DbRepository<User>(context);
- this._userMapper = new Mapper(new MapperConfiguration(cfg =>
- cfg.CreateMap<UserDTO, User>()));
+ this._userMapper = mapper;
}
public async Task<HttpStatusCode> CreateUser(UserDTO userDTO)