Ejemplo n.º 1
0
        public ActionResult Default()
        {
            int             CateID  = DataConverter.CLng(Request["cateid"]);
            string          Skey    = Request["skey"];
            M_GuestBookCate cateMod = cateBll.SelReturnModel(CateID);

            if (cateMod == null)
            {
                cateMod = new M_GuestBookCate()
                {
                    CateID = 0, CateName = "留言信息", NeedLog = 0
                };
            }
            ViewBag.cateMod = cateMod;
            ViewBag.cateDt  = cateBll.SelByGuest();
            ViewBag.needlog = cateMod.NeedLog;
            ViewBag.mu      = buser.GetLogin();
            PageSetting setting = cateBll.SelPage(CPage, PSize, -100, cateMod.CateID, 0, Skey, buser.GetLogin().UserID, true);

            return(View(setting));
        }