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