mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
backed end add
This commit is contained in:
@@ -73,6 +73,7 @@ inventoryGroup.MapPut("/{id}", async (int id, InventoryItems updatedItem, BarkCo
|
||||
}
|
||||
|
||||
existingItem.Name = updatedItem.Name;
|
||||
existingItem.Barcode = updatedItem.Barcode;
|
||||
existingItem.Brand = updatedItem.Brand;
|
||||
existingItem.SerialNumber = updatedItem.SerialNumber;
|
||||
existingItem.Status = updatedItem.Status;
|
||||
@@ -88,6 +89,7 @@ inventoryGroup.MapPost("", async (InventoryItems newItemInput, BarkContext db) =
|
||||
{
|
||||
var newItem = new InventoryItems();
|
||||
newItem.Name = newItemInput.Name;
|
||||
newItem.Barcode = newItemInput.Barcode;
|
||||
newItem.Brand = newItemInput.Brand;
|
||||
newItem.SerialNumber = newItemInput.SerialNumber;
|
||||
newItem.RentalPrice = newItemInput.RentalPrice;
|
||||
|
||||
Reference in New Issue
Block a user