public async Task <IActionResult> CreateToken(LoginModel model)
        {
            var user = await _authenticationLogic.AuthenicateAsync(model);

            if (user == null)
            {
                return(Unauthorized());
            }

            var token = _jwtTokenHelper.CreateTokenForUser(user);

            return(Ok(token));
        }