Ejemplo n.º 1
0
        public async Task <IActionResult> FilterStateProvinces(
            [FromRoute] int page,
            [FromRoute] int pageSize,
            [FromQuery] bool?isHidden,
            [FromQuery] string searchTerm)
        {
            var result = await _stateProvinceService.FilterStateProvincesAsynnc(
                new PagingRequestDto
            {
                PageSize = pageSize,
                Page     = page
            },
                new FilterStateProvinceDto
            {
                IsHidden   = isHidden,
                SearchTerm = searchTerm
            });

            return(Success(result));
        }