public ActionResult List() { int pageIndex = Utils.GetInt(Request["page"]); ViewBag.page = Utils.ShowPage(100, 15, pageIndex, 5); ViewBag.list = dal.GetList(); return(View()); }
public ActionResult Dpx(int id) { ViewBag.themeid = id; D_CommentType dal = new D_CommentType(); D_CommentItem dalitem = new D_CommentItem(); D_Opinion opiniondal = new D_Opinion(); ViewBag.commentitemlist = dalitem.GetList(new E_CommentItem()); ViewBag.commenttypelist = dal.GetList(); int count = 0; ViewBag.opinionlist = opiniondal.GetList(new E_Opinion() { opiniontypeid = 1 }, ref count); return(View()); }
public static List <E_CommentType> GetCommentTypeList() { return(dCommentType.GetList()); }