/// <summary> /// The user id. /// </summary> /// <param name="userName"> /// The user name. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> public string UserId(string userName) { var handler = new UserInfoHandler(StfLogger, WtApiConfiguration); var userInfo = handler.UserInfoByUserName(userName); var retVal = userInfo?.UserId ?? "Unknown user name"; return(retVal); }