Exemple #1
0
 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));
        }
Exemple #3
0
        public ActionResult Index()
        {
            var openings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open);

            return(Json(openings, JsonRequestBehavior.AllowGet));
        }