예제 #1
0
 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"));
     }
 }
예제 #2
0
        public ActionResult MostAwardScore()
        {
            JobAdvManager jm = new JobAdvManager();

            return(View("Index", jm.ListQueryable().OrderByDescending(x => x.awardScoreValue).ToList()));
        }