public CommentingViewModel(int itemtype, int itemid, IQueryable<Comment> AllComments, Player CurrentPlayer) { Comments = AllComments.GetComments(itemtype, itemid).Take(30).Select(c => new CommentSummary(c, CurrentPlayer)); ItemType = itemtype; ItemId = itemid; IsLoggedIn = (CurrentPlayer != null); TotalCommentCount = AllComments.GetComments(itemtype, itemid).Count(); }