public void DeleteInventory(Inventory inventory) { inventRepo.DeleteInventory(inventory); }
public ActionResult DeleteInventory(int id) { _inventoryRepo.DeleteInventory(id); _inventoryRepo.SaveChanges(); return(NoContent()); }