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); }