Esempio n. 1
0
        public async Task <IActionResult> GetAllPaging([FromQuery] PagingParams pagingParams)
        {
            PagedList <ReceiptViewModel> paged = await _receiptRepository.GetAllPagingAsync(pagingParams);

            Response.AddPagination(paged.CurrentPage, paged.PageSize, paged.TotalCount, paged.TotalPages);

            return(Ok(paged));
        }