public Product GetProduct(string id) { var item = _productRepository.GetProduct(id); if (item == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return item; }