lolllllllll
This commit is contained in:
parent
69b952f64a
commit
7447b1ad40
@ -118,7 +118,7 @@ public class InventoryController : Controller {
|
||||
if (prod.Quantity == 0)
|
||||
prod.Status = prod.Status == Product.States.Clearance?
|
||||
Product.States.Discontinued:
|
||||
Product.States.Unavailable;
|
||||
Product.States.BackOrder;
|
||||
}
|
||||
else {
|
||||
_logger.LogError(8, "Vente de produit pas en stock.");
|
||||
|
@ -41,8 +41,8 @@ public class SearchController : Controller {
|
||||
List<Product> title = new(), desc = new(), cat = new();
|
||||
query = query.ToLower();
|
||||
|
||||
foreach (Product prod in _searchCache) {
|
||||
string sTitle = prod.Title.Replace(".", " ").Replace(",", " ").ToLower(),
|
||||
foreach (Product prod in _searchCache) {
|
||||
string sTitle = prod.Title.Replace(".", " ").Replace(",", " ").ToLower(),
|
||||
sCat = prod.Category.Replace(".", " ").Replace(",", " ").ToLower(),
|
||||
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user