コード例 #1
0
        public IActionResult GetPaginated()
        {
            var page = new PagedValueResult <object>()
            {
                Value = new object[] { 1, 2, 3 }
            };

            return(this.PagedJsonResult(page, true));
        }
コード例 #2
0
 public static IActionResult PagedJsonResult <T>(this ControllerBase controller, PagedValueResult <T> result, bool envelope = false)
     where T : class
 {
     return(new PagedJsonResult <T>(result, envelope));
 }