コード例 #1
0
        public JsonResult GetTipos(int page = 1, int limit = 10)
        {
            var tipos   = _localService.GetTiposPagedList(page > 0 ? page - 1 : page, limit);
            var records = tipos.Items;
            var total   = tipos.TotalCount;

            return(Json(
                       new { records, total }
                       , JsonRequestBehavior.AllowGet));
        }