예제 #1
0
        // GET: Content
        public ActionResult Index(int page = 1, int pageSize = 5)
        {
            var dao   = new ContentDao();
            var model = dao.ListAllContentUI(page, pageSize);
            var m     = new ContentDao();

            ViewBag.Cate    = new ContentCategoryDao().ListAllContentCategory();
            ViewBag.Content = m.ListContent(5);
            return(View(model));
        }