diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs index 1ac8c5c..a40b7a4 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs @@ -45,7 +45,6 @@ public class SearchController : Controller { string sTitle = prod.Title.Replace(".", " ").Replace(",", " ").ToLower(), sCat = prod.Category.Replace(".", " ").Replace(",", " ").ToLower(), sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower(); - if (sTitle.StartsWith(query)) products.Add(prod); else if (sTitle.Contains(" " + query + " "))