public IActionResult Get() { try { var products = _productCatalogRepository.GetProduct(); if (products == null) { return(NotFound()); } return(Ok(products)); } catch (Exception) { return(BadRequest()); } }
public Product Get(Guid id) { return _productCatalogRepository.GetProduct(id); }