Esempio n. 1
0
        public ActionResult Index(int?page)
        {
            int pageSize   = 10;
            int pageNumber = page ?? 1;

            return(View(giayDAO.GetAll().ToPagedList(pageNumber, pageSize)));
        }
 public ActionResult Them()
 {
     return(View(giayDAO.GetAll().Where(item => {
         var d = DateTime.Now;
         return item.createdAt < d;
     }).Take(20)));
 }
Esempio n. 3
0
 public ActionResult Them()
 {
     ViewBag.DanhSachGiay = giayDAO.GetAll();
     ViewBag.DanhSachKH   = khDAO.getAll();
     return(View("Them"));
 }