// TODO: Add your Plugin Control Code here. public void Index(int?page) { var model = DynamicComment.GetAllComments().OrderByDescending(x => x.PageID).ToPagedList(page ?? 1, 10); }
public ActionResult Index(int?page) { ViewBag.Comments = DynamicComment.GetAllComments().OrderByDescending(x => x.PageID).ToPagedList(page ?? 1, 2); return(View()); }