Пример #1
0
        public async Task <IEnumerable <ProductDto> > Handle(GetLatestProductsQuery request, CancellationToken cancellationToken)
        {
            var products = await _productQueries.GetLatestProductAsync(request.Limit);

            if (products == null)
            {
                products = new List <ProductDto>();
            }

            return(products);
        }