protected static string GetUserTitle(LinkToUserData user, string currentUserId) { return(user.IdRef == currentUserId?Resources.You.ToLowerInvariant() : user.Title); }
public static UserData GetUser(this LinkToUserData linkTo) { return(linkTo.IdRef == TcmUri.Null ? null : linkTo.IdRef.ToTcmUri().GetItem <UserData>()); }
protected static string GetUserTitle(LinkToUserData user, string currentUserId) { return user.IdRef == currentUserId ? Resources.You.ToLowerInvariant() : user.Title; }