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

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