public async Task <IActionResult> GetUserExistsInAd(string username)
        {
            _logger.LogDebug("GetUserExistsInAd {username}", username);

            var exists = await _userApiService.CheckUserExistsInAAD(username);

            if (exists)
            {
                return(Ok(true));
            }

            return(NotFound(false));
        }
 private async Task <bool> UserDoesNotExistInAAD(string username)
 {
     return(!await _userApiService.CheckUserExistsInAAD(username));
 }