public async Task <IActionResult> GetAllProducts() { IReadOnlyList <Product> productList = await _marketRepository.GetListAllAsync(); if (productList == null) { return(BadRequest("Could not get products")); } return(Ok(productList)); }