lolllllllll

This commit is contained in:
MarcEricMartel 2022-10-18 11:48:34 -07:00
parent 69b952f64a
commit 7447b1ad40
2 changed files with 3 additions and 3 deletions

View File

@ -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.");

View File

@ -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();