public static UserCommentsViewModel ByToken(string token, int page) { var total = CommentModel.CountCommentsByToken(token); var comments = CommentModel.GetCommentsByToken(token, (page - 1) * CommentsPerPage, CommentsPerPage); return(new UserCommentsViewModel("by-token/" + Uri.EscapeDataString(token), comments, page, total)); }