public Product GetProduct(int productId) { var product = _productRepository.Get(productId); if (product.CategoryID.HasValue) { product.Category = GetCategory(product.CategoryID.Value); } return(product); }
public Product GetProduct(int productId) { var product = _productRepository.Get(productId); if (product.CategoryID.HasValue) { product.Category = GetCategory(product.CategoryID.Value); } return(product); }