Example #1
0
        public PaginatorResponseModel <T> List(PaginatorRequestModel requestModel)
        {
            var paginator = genericRepository.List(requestModel.Page, requestModel.RowsPage);

            return(new PaginatorResponseModel <T>
            {
                ResultList = paginator.Result,
                TotalRows = paginator.TotalRow
            });
        }
Example #2
0
        public virtual IActionResult GetPaginated([FromBody] PaginatorRequestModel paginatorRequestModel)
        {
            var result = genericService.List(paginatorRequestModel);

            return(new ObjectResult(result));
        }