public ActionResult <List <InventoryItem> > Post([FromBody] InventoryItem inventoryItem) { var inventoryItems = _service.AddInventoryItem(inventoryItem); if (inventoryItems == null) { return(NotFound()); } return(inventoryItems); }
public ActionResult <List <InventoryItem> > Post([FromBody] InventoryItem inventoryItem) { var inventoryItems = _service.AddInventoryItem(inventoryItem); if (inventoryItems == null) { return(NotFound()); } return(inventoryItems); }