private IFoundViewModel GetCommentFoundViewModel(IFound found) { var commentFound = (CommentFound)found; UserModel user = _userService.GetUser(commentFound.OwnerId); string userName = user.FirstName + " " + user.LastName; return(new CommentFoundViewModel { CommentUrl = urlUtil.BuildCommentUrl(commentFound.PhotoId, commentFound.Id), DateOfCreation = commentFound.DateOfCreation, UserName = userName, Text = commentFound.Text, UserViewUrl = urlUtil.BuildUserViewUrl(commentFound.OwnerId), UserAvatarPath = pathUtil.BuildAvatarPath(commentFound.OwnerId, ImageSize.Medium) }); }