public Guid GenerateAccessTokenForUser(User user)
        {
            AccessToken tokenDeleted = _accessTokenRepository.GetAccessTokenByUserId(user.UserId);
            if(tokenDeleted != null)
                _accessTokenRepository.DeleteAccessToken(tokenDeleted.AccessTokenId);

            AccessToken newToken = new AccessToken();
            newToken.AccessTokenId = Guid.NewGuid();
            newToken.UserId = user.UserId;

            _accessTokenRepository.AddAccessToken(newToken);

            _accessTokenRepository.Save();

            return newToken.AccessTokenId;
        }
 public void AddAccessToken(AccessToken token)
 {
     _context.AccessTokens.Add(token);
 }