react-version #1
@ -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