Exemple #1
0
        public async Task <IActionResult> GetReceivePagination([FromQuery] PaginationParams param, ManagerParam filterParam)
        {
            var userCurrent = User.FindFirst(ClaimTypes.NameIdentifier).Value;
            var receives    = await _serviceApproval.SearchWithPaginations(param, filterParam, userCurrent);

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