public IActionResult GetUserDirectoryEntry(string username, string pw) { _logger.Information("START PasswordController.GetUserDirectoryEntry: "); try { var obj = _passwordChangeProvider.GetUserDirectoryEntry(username, pw); return(Json(obj)); } catch (Exception e) { return(Json(e.Message)); } }