diff --git a/barkmanAPI/Program.cs b/barkmanAPI/Program.cs index 0d3297c..4284745 100644 --- a/barkmanAPI/Program.cs +++ b/barkmanAPI/Program.cs @@ -76,7 +76,7 @@ inventoryGroup.MapPut("/{id}", async (int id, InventoryItems updatedItem, BarkCo existingItem.Barcode = updatedItem.Barcode; existingItem.Brand = updatedItem.Brand; existingItem.SerialNumber = updatedItem.SerialNumber; - existingItem.Status = updatedItem.Status; + existingItem.StatusId = updatedItem.StatusId; existingItem.RentalPrice = updatedItem.RentalPrice; existingItem.ReplacementCost = updatedItem.ReplacementCost; existingItem.Notes = updatedItem.Notes;