Exemplo n.º 1
0
 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());
     }
 }
Exemplo n.º 2
0
 public void AddItem(long id, [FromBody] ItemWebData item)
 {
     _inventoryService.AddItemToInventory(id, item);
 }