コード例 #1
0
        public ActionResult GetTermsNConditionWordingsByPaging(string sSearch, int sEcho, int iSortCol_0,
                                                               string sSortDir_0,
                                                               int iDisplayLength = 10, int iDisplayStart = 0)
        {
            var iTotalRecords        = default(int);
            var iTotalDisplayRecords = default(int);
            var sortCol = this.Request[string.Format("mDataProp_{0}", iSortCol_0)];

            var aaData = AdminModuleManager.GetTermsNConditionWordingsByPaging(sSearch, sortCol, sSortDir_0,
                                                                               iDisplayStart, iDisplayLength,
                                                                               out iTotalDisplayRecords,
                                                                               out iTotalRecords);

            return(new JsonNetResult
            {
                Data = new { sEcho, iTotalRecords, iTotalDisplayRecords, aaData }
            });
        }