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 Index() { return(View(jobAdvManager.List())); }