This commit is contained in:
MarcEricMartel 2022-10-25 10:28:34 -07:00
parent 1312cc3903
commit acef0f0b33

View File

@ -43,7 +43,7 @@ public class SearchController : Controller {
if (deep.HasValue && deep == true) {
List<Product> title = new(), desc = new(), cat = new();
query = query.ToLower();
foreach (Product prod in _context.Products.ToList()) {
foreach (Product prod in _context.Products.ToArray()) {
string sTitle = prod.Title.Replace(",", " ").ToLower(),
sCat = prod.Category.ToLower(),
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();