argh
This commit is contained in:
parent
1312cc3903
commit
acef0f0b33
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user