public ActionResult DanhSachCTPN(string ma, int?page)
        {
            var lsp = spd.LayDsSanPham();

            ViewBag.MaSP = new SelectList(lsp, "MaSP", "TenSP");
            var lncc = ncc.LayDSNhaCungCap();

            ViewBag.MaNCC = new SelectList(lncc, "MaNCC", "TenNCC");
            int pagenumber = page ?? 1;
            var ds         = db.LayDsPnTheoMaFull(ma);

            return(View(ds.ToPagedList(pagenumber, 10)));
        }
Beispiel #2
0
        public List <SanPham> LayDanhSachSanPham()
        {
            var ds = db.LayDsSanPham();

            return(ds);
        }