public async Task <IActionResult> PaginationApplicationSetting(int pageNumber, int onPage) { var searchPattern = new ApplicationSettingPaginationPattern { PageNumber = pageNumber, OnPage = onPage }; PaginationResult <ApplicationSetting> searchResult = await applicationSettingRepository.Pagination(searchPattern); return(Ok(new PaginationResult <ApplicationSettingDto> { Items = searchResult.Items.Map(), TotalCount = searchResult.TotalCount, })); }