public async Task <ActionResult <IEnumerable <Product> > > GetProducts(string search) { IEnumerable <Product> products = await productQueries.GetProductsAsync(search); return(Ok(products)); }
public async Task <IEnumerable <Product> > GetProducts() { return(await productQueries.GetProductsAsync()); }
public async Task <ActionResult <IEnumerable <Product> > > GetProductsAsync() { var products = await _productQueries.GetProductsAsync(); return(Ok(products)); }