fixed stupid, also page redirect

This commit is contained in:
2025-01-29 20:33:37 -06:00
parent 73d58aea4f
commit a4a038f8bc
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ inventoryGroup.MapPut("/{id}", async (int id, InventoryItems updatedItem, BarkCo
inventoryGroup.MapPost("", async (InventoryItems newItemInput, BarkContext db) =>
{
var newItem = new InventoryItems();
newItemInput.Name = newItem.Name;
newItem.Name = newItemInput.Name;
newItem.Brand = newItemInput.Brand;
newItem.SerialNumber = newItemInput.SerialNumber;
newItem.RentalPrice = newItemInput.RentalPrice;