Ejemplo n.º 1
0
        public async Task <IActionResult> GetReceivePagination([FromQuery] PaginationParams param)
        {
            var userCurrent = User.FindFirst(ClaimTypes.NameIdentifier).Value;
            var receives    = await _serviceApproval.GetWithPaginations(param, userCurrent);

            Response.AddPagination(receives.CurrentPage, receives.PageSize, receives.TotalCount, receives.TotalPages);
            return(Ok(receives));
        }