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;
        }