Esempio n. 1
0
        public ActionResult ShowProduct(int id)
        {
            productFac = new ProductFac(this.HttpContext);

            List<Product> products = productFac.Products();

            Product product = products.Find(x => x.ProductID == id);
            return View(product);
        }
Esempio n. 2
0
 public ActionResult Products()
 {
     productFac = new ProductFac(this.HttpContext);
     List<Product> products = productFac.Products();
     return View(products);
 }