产品排序

This commit is contained in:
wanyongkang
2020-10-19 17:37:25 +08:00
parent 7f5e014c60
commit 25e577ec82
8 changed files with 9 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ namespace Home.Controllers
var ret = await m_ProductRouteService.Query(exp).OrderBy(m=>m.Sort).ToListAsync();
var products = await m_ProductService.Query(m=>m.OnLine == 1).ToListAsync();
var products = await m_ProductService.Query(m=>m.OnLine == 1).OrderBy(m=>m.Sort).ToListAsync();
ViewData["products"] = products;
return View(ret);
}