public ActionResult UpdateInventory(InventoryVM person) { humanLg.UpdateInventory(InventoryVM.Map(person)); ModelState.Clear(); ViewBag.Message2 = person.inventoryName + " Successfully Updated"; return(RedirectToAction("DisplayInventory")); }
public ActionResult UpdateInventory(int id) { InventoryVM human = InventoryVM.Map(humanLg.GetInventoryInfoByInventoryID(id)); return(View(human)); }
public ActionResult DisplayInventoryEmployee() { return(View(InventoryVM.Map(humanLg.DisplayInventory()))); }
public ActionResult DisplayInventoryCustomer() { return(View(InventoryVM.Map(humanLg.DisplayInventory()))); }
public ActionResult AddInventory(InventoryVM person) //This is creating new products { humanLg.AddInventory(InventoryVM.Map(person)); return(RedirectToAction("inventoryConfirmation")); }