Exemplo n.º 1
0
 public IEnumerable<Product> Get(string search)
 {
     var productRepository = new ProductRepository();
     var products = productRepository.Retrieve();
     return products.Where(p => p.ProductCode.Contains(search));
 }
Exemplo n.º 2
0
 // GET: api/Products
 public IEnumerable<Product> Get()
 {
     var productRepository = new ProductRepository();
     return productRepository.Retrieve();
 }