AdventureWorks.WebServices.Controllers.ProductController.GetProduct C# (CSharp) Метод

GetProduct() публичный Метод

public GetProduct ( string id ) : AdventureWorks.WebServices.Models.Product
id string
Результат AdventureWorks.WebServices.Models.Product
        public Product GetProduct(string id)
        {
            var item = _productRepository.GetProduct(id);

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

            return item;
        }