Esempio n. 1
0
        public JsonResult <List <Product> > GetAllProduct()

        {
            List <Product> products = new List <Product>();

            products = productGateway.GetAllProduct();

            return(Json(products));
        }
Esempio n. 2
0
 public static List <Product> GetAllProduct()
 {
     return(ProductGateway.GetAllProduct());
 }
Esempio n. 3
0
        // GET: Product
        public ActionResult Index()
        {
            List <ProductViewModel> allProduct = aProductGateway.GetAllProduct();

            return(View(allProduct));
        }