public PaginatorResponseModel <T> List(PaginatorRequestModel requestModel) { var paginator = genericRepository.List(requestModel.Page, requestModel.RowsPage); return(new PaginatorResponseModel <T> { ResultList = paginator.Result, TotalRows = paginator.TotalRow }); }
public virtual IActionResult GetPaginated([FromBody] PaginatorRequestModel paginatorRequestModel) { var result = genericService.List(paginatorRequestModel); return(new ObjectResult(result)); }