// // GET: /Comment/ public PartialViewResult CommentListRange(int channelId, int startIndex, int endIndex) { if (startIndex <= 0) { startIndex = 0; endIndex = 10; } Comment[] comments; using (RentItServiceClient proxy = new RentItServiceClient()) { comments = proxy.GetChannelComments(channelId, startIndex, endIndex); } List<GuiComment> guiComments = GuiClassConverter.ConvertComments(comments); ViewBag.ChannelId = channelId; return PartialView("CommentList", new Tuple<List<GuiComment>, int, int>(guiComments, startIndex, endIndex)); }