예제 #1
0
 public ActionResult Index()
 {
     var model = new HomeViewModel()
     {
         news = nd.Get().ToList().OrderByDescending(a => a.wdate),
         product = pd.Get().ToList().Where(a => a.isdel == 0)
     };
     return View(model);
 }
예제 #2
0
 public ActionResult Index()
 {
     var model = new HomeViewModel()
     {
         news = nd.Get().ToList().Where(a => a.isdel == 0),
         productClass = pcd.Get().ToList().Where(a => a.isdel == 0 && a.root == 0),
         product = pd.Get().ToList().Where(a => a.isdel == 0),
         Bonus = bonus.Get().ToList(),
         Banner = band.Get().ToList()
     };
     return View(model);
 }