public IActionResult AddInventoryItem(int productId, int locationId, int quantity) { try { _inventoryService.AddItemToInventory(productId, locationId, quantity); Log.Information("Added Inventory Item"); return(Ok()); } catch (Exception e) { Log.Warning(e.Message); return(BadRequest()); } }
public void AddItem(long id, [FromBody] ItemWebData item) { _inventoryService.AddItemToInventory(id, item); }