Beispiel #1
0
 public ActionResult Index()
 {
     StockServiceClient service = new StockServiceClient();
     // Product[] products = service.GetAllProducts();
     List<Product> products = service.GetAllProducts();
     return View(products);
 }
Beispiel #2
0
 public ActionResult Index()
 {
     try
     {
         StockServiceClient service = new StockServiceClient();
         Product[] products = service.GetAllProducts();
         return View(products);
     }
     catch (Exception ex)
     {
         return null;
     }
 }
Beispiel #3
0
 // GET: Home
 public ActionResult Index()
 {
     StockServiceClient service = new StockServiceClient();
     return View(service.GetAllProducts());
 }