From 13c34c72153b99ea88c7f1da849c329861bfef13 Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Tue, 18 Oct 2022 07:46:01 -0700 Subject: [PATCH] Update InventoryController.cs --- .../GrossesMitainesAPI/Controllers/InventoryController.cs | 1 + 1 file changed, 1 insertion(+) 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; }