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

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