diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs index 5b247f4..7758445 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/InventoryController.cs @@ -92,6 +92,7 @@ public class InventoryController : Controller { if (prod.Id == lastId) yup = true; } + else lst = ret.Take(AMOUNT).ToList(); return lst; }