public ActionResult chucnang(int page = 1, int pagesize = 1) { try { if (Ktdangnhap() == true) { //ViewBag.sanpham = SanPhamMager.getAllSanPham(); var lstpage = SanPhamMager.phantrang(page, pagesize); return(View(lstpage)); } else { return(RedirectToAction("Index")); } } catch { return(RedirectToAction("Index")); } }