react-version #1
@ -43,7 +43,7 @@ public class SearchController : Controller {
|
|||||||
if (deep.HasValue && deep == true) {
|
if (deep.HasValue && deep == true) {
|
||||||
List<Product> title = new(), desc = new(), cat = new();
|
List<Product> title = new(), desc = new(), cat = new();
|
||||||
query = query.ToLower();
|
query = query.ToLower();
|
||||||
foreach (Product prod in _context.Products.ToList()) {
|
foreach (Product prod in _context.Products.ToArray()) {
|
||||||
string sTitle = prod.Title.Replace(",", " ").ToLower(),
|
string sTitle = prod.Title.Replace(",", " ").ToLower(),
|
||||||
sCat = prod.Category.ToLower(),
|
sCat = prod.Category.ToLower(),
|
||||||
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();
|
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();
|
||||||
|
Loading…
Reference in New Issue
Block a user