Exemple #1
0
        public ActionResult <Inventory> AddInventory(Inventory inv)
        {
            var inventory = _repo.AddInventory(inv);

            if (inventory == null)
            {
                return(NotFound());
            }

            return(inventory);
        }
 public void AddInventory(Inventory inventory)
 {
     repo.AddInventory(inventory);
 }