AdventureWorks.WebServices.Controllers.ProductController.GetProduct C# (CSharp) Method

GetProduct() public method

public GetProduct ( string id ) : AdventureWorks.WebServices.Models.Product
id string
return AdventureWorks.WebServices.Models.Product
        public Product GetProduct(string id)
        {
            var item = _productRepository.GetProduct(id);

            if (item == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            return item;
        }