public ActionResult <List <ResponseJobOfferWithCompanyDTO> > GetAllJobOffers() { try { var jobOffers = _jobOfferService.GetAllJobOffers(); var jobOfferWithCompanyDTO = _mapper.Map <List <ResponseJobOfferWithCompanyDTO> >(jobOffers); return(Ok(jobOfferWithCompanyDTO)); } catch (KeyNotFoundException) { return(NotFound()); } }
public IActionResult Index() { return(View(_jobService.GetAllJobOffers())); }