Example #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"));
     }
 }
Example #2
0
 public ActionResult Index()
 {
     return(View(jobAdvManager.List()));
 }