public ActionResult OpeningDetails(int id) { return(RedirectIfNotLoggedIn(() => { var jobOpening = _jobOpeningRepository.Get(id); return View(jobOpening); })); }
public ActionResult OpeningDetails(int id) { var jobOpening = _jobOpeningRepository.Get(id); return(CheckForNullAndExecute(jobOpening, () => View(jobOpening))); }
public ActionResult Get(int id) { var apiResult = TryExecute(() => _jobOpeningRepository.Get(id), "Job Opening Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }