Exemplo n.º 1
0
        // 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));
        }
Exemplo n.º 2
0
        public ActionResult ViewDetail(int idbills)
        {
            var model = new BillsDAO().ViewDetail(idbills);

            return(PartialView("ViewDetail", model));
        }