Update SearchController.cs

This commit is contained in:
MarcEricMartel 2022-10-18 11:37:18 -07:00
parent 144ff9478f
commit ecb39e3b54

View File

@ -28,7 +28,7 @@ public class SearchController : Controller {
[EnableCors("_myAllowSpecificOrigins")] [EnableCors("_myAllowSpecificOrigins")]
[HttpPost(Name = "Search")] [HttpPost(Name = "Search")]
public IEnumerable<Product> Post(string query, bool? preview, bool? deep) { public IEnumerable<Product> Post(string query, bool? preview, bool? deep) {
const int PREVIEW = 3; const int PREVIEW = 4;
List<Product> products = new(); List<Product> products = new();
query = query.Trim(); query = query.Trim();