moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney
This commit is contained in:
		@@ -62,10 +62,10 @@ public class InventoryController : Controller {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        switch (order) {
 | 
					        switch (order) {
 | 
				
			||||||
            case "Price":
 | 
					            case "Price":
 | 
				
			||||||
                ret = ret.OrderBy(x => x.Status == Product.States.Promotion? x.PromoPrice: x.Price);
 | 
					                ret = ret.OrderBy(x => x.Status == Product.States.Promotion || x.Status == Product.States.Clearance? x.PromoPrice: x.Price);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case "PriceDesc":
 | 
					            case "PriceDesc":
 | 
				
			||||||
                ret = ret.OrderByDescending(x => x.Status == Product.States.Promotion ? x.PromoPrice : x.Price);
 | 
					                ret = ret.OrderByDescending(x => x.Status == Product.States.Promotion || x.Status == Product.States.Clearance ? x.PromoPrice : x.Price);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case "Title":
 | 
					            case "Title":
 | 
				
			||||||
                ret = ret.OrderBy(x => x.Title);
 | 
					                ret = ret.OrderBy(x => x.Title);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user