public bool HasUserProfileImage(int userId)
        {
            string value;
            var    keyFound = ProfileBiz.TryReadUserProfileValue(userId, ProfileKeyValueType.IsProfileImageSet, out value);

            return(keyFound && value == "1");
        }
Пример #2
0
        public BusinessIntroducePM ReadUserBusinesIntroduce(int userId)
        {
            string text;

            return(new BusinessIntroducePM()
            {
                Text = ProfileBiz.TryReadUserProfileValue(userId, ProfileKeyValueType.UserBusinessIntroduceText, out text) ?
                       text : ""
            });
        }