示例#1
0
        public async Task <IActionResult> List(int p)
        {
            if (p < 1)
            {
                p = 1;
            }

            ViewData["page"]        = p;
            ViewData["total_count"] = BoardModel.GetCount("GENERAL");

            var model = await BoardModel.GetListAsync("GENERAL", p);

            return(View(model));
        }