Exemplo n.º 1
0
        public ActionResult SearchFootLink(FootLinkViewModel model)
        {
            model.page = int.Parse(Request["page"]);
            model.rows = int.Parse(Request["rows"]);
            FootLinkBLL  footbll = new FootLinkBLL();
            FootLinkList list    = footbll.getList(model);

            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public FootLinkList getList(FootLinkViewModel model)
        {
            FootLinkList footLinkList = new FootLinkList();
            DataTable    dt           = footLinkDAL.getList(model);

            footLinkList.rows  = dt.toList <FootLinkModel>();
            footLinkList.total = footLinkDAL.getCount(model);
            return(footLinkList);
        }