mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
changed get to return sorted by barcode
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user