public bool HasUserProfileImage(int userId) { string value; var keyFound = ProfileBiz.TryReadUserProfileValue(userId, ProfileKeyValueType.IsProfileImageSet, out value); return(keyFound && value == "1"); }
public BusinessIntroducePM ReadUserBusinesIntroduce(int userId) { string text; return(new BusinessIntroducePM() { Text = ProfileBiz.TryReadUserProfileValue(userId, ProfileKeyValueType.UserBusinessIntroduceText, out text) ? text : "" }); }