Beispiel #1
0
 public async Task <ActionResult <IEnumerable <ProductDto> > > Get([FromQuery] BrowseProducts query)
 => Result(await QueryAsync(query));
Beispiel #2
0
        public async Task <ActionResult <Product> > Get([FromQuery] BrowseProducts query)
        {
            var products = await _productRepository.BrowseAsync(query.Name);

            return(Ok(products));
        }