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 ActionResult List(E_CommentItem model) { ViewBag.list = dal.GetList(model); return(View()); }