From eb17e4e68c25eb0a12c5175b9fe3a36fe8d55b83 Mon Sep 17 00:00:00 2001 From: Drew Rautenberg Date: Mon, 3 Feb 2025 10:33:55 -0600 Subject: [PATCH] changed get to return sorted by barcode --- barkmanAPI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barkmanAPI/Program.cs b/barkmanAPI/Program.cs index 4284745..5ede613 100644 --- a/barkmanAPI/Program.cs +++ b/barkmanAPI/Program.cs @@ -48,7 +48,7 @@ var itemStatusGroup = app.MapGroup(prefix: "/itemstatus") .WithDescription("Endpoints for managing item status"); inventoryGroup.MapGet("", async (BarkContext db) => - await db.Inventory.OrderBy(item => item.Id).ToListAsync()); + await db.Inventory.OrderBy(item => item.Barcode).ToListAsync()); inventoryGroup.MapGet("/{id}", async (int id, BarkContext db) => {