コード例 #1
0
        // GET: Category
        public ActionResult CategoryFood(int pageSize = 6, int pageIndex = 0)
        {
            List <MonAn> listMonAn = new MonAnDAO().getListMonAn();

            listMonAn = listMonAn.Skip(pageSize * pageIndex).Take(pageSize).ToList();

            return(PartialView("CategoryFood", listMonAn));
        }