public ActionResult <ResponseModelDTO> Authenticate([FromBody] UserCreateDTO user) { var userModel = _mapper.Map <UserModel>(user); var response = _repository.Authenticate(userModel); _repository.SaveChanges(); return(Ok(response)); }