Exemplo n.º 1
0
        public ActionResult sanphambanchay(int so, string ngaythang, int?page = 1)
        {
            int            pnum = page ?? 1;//nếu ko có ??(null) thì mặc định là 1
            caycanhModel   db   = new caycanhModel();
            List <caycanh> ds   = db.LaySPBanChay(so, ngaythang).ToList();

            return(PartialView(ds.ToPagedList(pnum, 8)));
        }
Exemplo n.º 2
0
        public List <caycanh> LaySPBanChay(int so, string ngaythang)
        {
            List <caycanh> sp = spm.LaySPBanChay(so, ngaythang);

            return(sp);
        }