public IActionResult Paging([FromQuery] PagingParams pagingParams) { var persons = _personAppService.FindWithPageSearch(pagingParams); Response.Headers.Add("X-Pagination", persons.GetHeader().ToJson()); var personPageModel = new PersonPageModel { Paging = persons.GetHeader(), Links = PageLink <PersonModel> .GetLinks(_urlHelper, "paging", persons), Items = persons.List }; return(Ok(personPageModel)); }