react-version #1

Merged
memartel merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit 9652403faf - Show all commits

View File

@@ -6,6 +6,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using GrossesMitainesAPI.Services;
using System.Collections.Immutable;
namespace GrossesMitainesAPI.Controllers;
@@ -21,7 +22,6 @@ public class SearchController : Controller {
_logger = logger;
_context = context;
_cache = cache;
if (_cache.isOk())
_searchCache = _cache.GetCacheCopy();
}
@@ -43,7 +43,6 @@ 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()) {
string sTitle = prod.Title.Replace(",", " ").ToLower(),
sCat = prod.Category.ToLower(),