コード例 #1
0
 public ActionResult UpdateInventory(InventoryVM person)
 {
     humanLg.UpdateInventory(InventoryVM.Map(person));
     ModelState.Clear();
     ViewBag.Message2 = person.inventoryName + " Successfully Updated";
     return(RedirectToAction("DisplayInventory"));
 }
コード例 #2
0
        public ActionResult UpdateInventory(int id)
        {
            InventoryVM human = InventoryVM.Map(humanLg.GetInventoryInfoByInventoryID(id));

            return(View(human));
        }
コード例 #3
0
 public ActionResult DisplayInventoryEmployee()
 {
     return(View(InventoryVM.Map(humanLg.DisplayInventory())));
 }
コード例 #4
0
 public ActionResult DisplayInventoryCustomer()
 {
     return(View(InventoryVM.Map(humanLg.DisplayInventory())));
 }
コード例 #5
0
 public ActionResult AddInventory(InventoryVM person)  //This is creating new products
 {
     humanLg.AddInventory(InventoryVM.Map(person));
     return(RedirectToAction("inventoryConfirmation"));
 }