public async Task <ClickedProductDTO> GetClickedProduct(int ProductID) { var product = await _queries.GetClickedProduct(ProductID); if (product == null) { throw new Exception("Couldn't find product"); } return(product); }
public async Task <ClickedProductDTO> GetClickedProduct(int ProductID) { var product = await _queries.GetClickedProduct(ProductID); if (product == null) { throw new Exception("Couldn't find product"); } return(product); }