public ActionResult UserMsgs(int pg = 1) { var bll = new UserMsgBLL(); int i = 0; var mdl = bll.Query(null, null, pg, out i, 10); ViewData["pager"] = Common.Utility.HtmlPager(10, pg, i, 20); return(PartialView(mdl)); }
public List <UserMessage> Query(string whr, string orderby, int pg, out int ttl, int pgsz = 10) { return(_BLL.Query(whr, orderby, pg, out ttl, pgsz)); }