Exemple #1
0
        ///<inheritdoc/>
        public async Task <IEnumerable <ProductQueryDto> > ListByPageAsync(ListProductsByPageQuery query, CancellationToken cancellationToken)
        {
            var products = await _productRepository.ListByPageAsync(query.PageNumber, query.PageSize, cancellationToken);

            return(products.ToList());
        }
 public async Task <IActionResult> ListByPageAsync([FromRoute] ListProductsByPageQuery query, CancellationToken cancellationToken)
 => Ok(await _productApplication.ListByPageAsync(query, cancellationToken));