public JsonResult List() { var result = new SingleResponse { Data = courierService.PageList(0), TotalCount = courierService.TotalCount() }; return(new JsonResult(result)); }
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); }