public IActionResult Get(int page, int size) { if (page <= 0 || size <= 0) { return(new ObjectResult(new List <CategoryMainDto>())); } int total = 0; var bbList = _cateMain.getPaging(page, size, out total); var resBody = new ResponeBodyModel <List <CategoryMainDto> >(); resBody.errorCode = "0"; resBody.errorMessage = ""; resBody.totalRecord = total; resBody.result = bbList; return(new ObjectResult(resBody)); }