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)); }
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); }