Example #1
0
        public JsonResult List()
        {
            var result = new SingleResponse {
                Data       = courierService.PageList(0),
                TotalCount = courierService.TotalCount()
            };

            return(new JsonResult(result));
        }
Example #2
0
        public JsonResult List(int page)
        {
            var list       = courierService.PageList(page);
            var totalCount = courierService.TotalCount();
            var response   = new JsonResult(
                new SingleResponse
            {
                Data       = list,
                TotalCount = totalCount
            }
                );

            return(response);
        }