diff --git a/PyroFetes/Endpoints/PurchaseOrders/CreatePurchaseOrder.cs b/PyroFetes/Endpoints/PurchaseOrders/CreatePurchaseOrder.cs index 6428158..977c914 100644 --- a/PyroFetes/Endpoints/PurchaseOrders/CreatePurchaseOrder.cs +++ b/PyroFetes/Endpoints/PurchaseOrders/CreatePurchaseOrder.cs @@ -42,6 +42,7 @@ public class CreatePurchaseOrder( if (purchaseProduct is not null) { await Send.StringAsync("Le produit est déjà dans le bon de commande", 400, cancellation: ct); + return; } PurchaseProduct? productOnPurchase = mapper.Map(line);