public UserPresentation Presentate(IUser user) { return new UserPresentation { Description = user.BusinessDescription.Truncate(330), DisplayName = user.GetDisplayName(), Title = user.BusinessTitle, ProfileUrl = user.GetProfileUrl(), PublicProfileUrl = string.Format("http://yoyyin.com/{0}", user.GetDisplayName()), UserID = user.UserId, Image = user.Image, User = user, ExternalUrlText = HttpUtility.HtmlEncode(user.Url), ExternalUrlHref = HttpUtility.UrlPathEncode(string.Format("http://{0}", user.Url.Replace("http://", ""))), SniHeadTitle = user.SniHead != null ? user.SniHead.Title : string.Empty, OnlineImageUrl = _onlineImageProvider.GetOnlineImageUrl(user.GetUserName()) }; }