public OtherPageList getList(OtherPageInfo model) { OtherPageList otherPageList = new OtherPageList(); DataTable dt = otherPageDAL.getList(model); otherPageList.rows = dt.toList <OtherPageInfo>(); otherPageList.total = otherPageDAL.getCount(model); return(otherPageList); }
public ActionResult SearchOtherPage(OtherPageInfo model) { model.page = int.Parse(Request["page"]); model.rows = int.Parse(Request["rows"]); OtherPageBLL otherPageBLL = new OtherPageBLL(); OtherPageList list = otherPageBLL.getList(model); return(Json(list, JsonRequestBehavior.AllowGet)); }