diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs index 35b8e06..ef24bc4 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs @@ -79,7 +79,7 @@ public class InventoryController : Controller { if (order.Contains("Desc")) { if (!lastId.HasValue) lastId = _context.Products.Max(x => x.Id); - ret = ret.Where(x => x.Id < lastId && x.Id > lastId - 5) + ret = ret.Where(x => x.Id < lastId && x.Id > lastId - 5); } else { if (!lastId.HasValue) lastId = 1;