Update SearchController.cs

This commit is contained in:
MarcEricMartel 2022-10-18 12:07:14 -07:00
parent fe5d00264d
commit 43a59ee1a7

View File

@ -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 + " "))