AdventureWorks.WebServices.Controllers.CategoryController.GetCategory C# (CSharp) Метод

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

public GetCategory ( int id ) : Category
id int
Результат AdventureWorks.WebServices.Models.Category
        public Category GetCategory(int id)
        {
            var item = _categoryRepository.GetItem(id);
            if (item == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            return item;
        }