public async Task <IEnumerable <JobOfferViewModel> > GetAll() { return(_mapper.Map <IEnumerable <JobOfferViewModel> >(await _jobOfferRepository.GetAll())); }
public JsonResult Index() { var apiResult = TryExecute(() => _jobOfferRepository.GetAll(), "Job Offers Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { var jobOffers = _jobOfferRepository.GetAll("Candidate,Designation").ToList(); return(View(jobOffers)); }
public async Task <IList <JobOffer> > GetAllOffers() { return(await _jobOfferRepo.GetAll()); }