Пример #1
0
 public ActionResult Details(int id)
 {
     InventoryServices.InventoryClient client = new InventoryServices.InventoryClient();
     var item = client.DbGetItems().FirstOrDefault(m => m.ItemId == id);
     return View(item);
 }
Пример #2
0
 public ActionResult Edit(int id)
 {
     InventoryServices.InventoryClient client = new InventoryServices.InventoryClient();
     var item = client.DbGetItem(id);
     return View(item);
 }
Пример #3
0
 public ActionResult Index()
 {
     InventoryServices.InventoryClient client = new InventoryServices.InventoryClient();
     var items = client.DbGetItems();
     return View(items);
 }