/// <summary> /// Liefert den Benutzernamen des Authors. /// </summary> /// <param name="objAuthor"></param> /// <param name="objUserId"></param> /// <returns></returns> protected string GetUserName(object objAuthor, object objUserId) { string userName = ""; if (System.DBNull.Value != objUserId) { Guid userId = (Guid)objUserId; userName = configAgent.GetUserWithId(userId); } else if (System.DBNull.Value != objAuthor) { userName = (string)objAuthor; } return(userName); }
/// <summary> /// Liefert den Benutzernamen des Authors. /// </summary> /// <param name="objAuthor"></param> /// <param name="objUserId"></param> /// <returns></returns> protected string GetUserName(object objAuthor, object objUserId) { string szUserName = ""; if (System.DBNull.Value != objUserId) { Guid userId = new Guid(HttpUtility.HtmlDecode((string)objUserId)); szUserName = configAgent.GetUserWithId(userId); } else if (System.DBNull.Value != objAuthor) { szUserName = (string)objAuthor; } return(szUserName); }