Example #1
0
        public async Task <IActionResult> Filter(
            [FromRoute] int page,
            [FromRoute] int pageSize,
            [FromQuery] string searchTerm,
            [FromQuery] bool?isLike
            )
        {
            var result = await _feedbackService.FilterFeedbacksAsync(
                new PagingAndSortingRequestDto
            {
                Page     = page,
                PageSize = pageSize
            },
                new FilterFeedbacksDto
            {
                SearchTerm = searchTerm,
                IsLike     = isLike,
            });

            return(Success(result));
        }