Пример #1
0
        // GET: Admin/Contact
        public ActionResult Index(int page = 1, int pagesize = 10)
        {
            var dao   = new ContactDAO();
            var model = dao.ListAllPage(page, pagesize);

            return(View(model));
        }
Пример #2
0
        // GET: Admin/ContactAdmin
        public ActionResult Index(string search, int page = 1, int pageSize = 5)
        {
            var iplAcc = new ContactDAO();
            var model  = iplAcc.ListAllPage(search, page, pageSize);

            ViewBag.Search = search;

            return(View(model));
        }