// GET: Admin/Bills public ActionResult Index(string searchString, int page = 1, int pageSize = 4) { var DAO = new BillsDAO(); var model = DAO.ListAllBills(searchString, page, pageSize); ViewBag.SearchString = searchString; return(View(model)); }
public ActionResult ViewDetail(int idbills) { var model = new BillsDAO().ViewDetail(idbills); return(PartialView("ViewDetail", model)); }