public async Task <IEnumerable <JobOfferViewModel> > GetAll()
 {
     return(_mapper.Map <IEnumerable <JobOfferViewModel> >(await _jobOfferRepository.GetAll()));
 }
示例#2
0
        public JsonResult Index()
        {
            var apiResult = TryExecute(() => _jobOfferRepository.GetAll(), "Job Offers Fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        public ActionResult Index()
        {
            var jobOffers = _jobOfferRepository.GetAll("Candidate,Designation").ToList();

            return(View(jobOffers));
        }
 public async Task <IList <JobOffer> > GetAllOffers()
 {
     return(await _jobOfferRepo.GetAll());
 }