public ActionResult JobOpenings() { return(RedirectIfNotLoggedIn(() => { var jobOpenings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open, j => j.OrderByDescending(d => d.CreatedOn)).ToList(); return View(jobOpenings); })); }
public ActionResult Openings() { var jobOpenings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open, j => j.OrderByDescending(d => d.CreatedOn)).ToList(); return(View(jobOpenings)); }
public ActionResult Index() { var openings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open); return(Json(openings, JsonRequestBehavior.AllowGet)); }