public ActionResult Index() { BusinessLayer.Test t = new BusinessLayer.Test(); if (Session["login"] != null) { JobAdvManager jm = new JobAdvManager(); return(View(jm.List().OrderByDescending(x => x.publishDate).ToList())); } else { return(RedirectToAction("TesterLogin")); } }
public ActionResult MostAwardScore() { JobAdvManager jm = new JobAdvManager(); return(View("Index", jm.ListQueryable().OrderByDescending(x => x.awardScoreValue).ToList())); }